Table: PEOPLE
id - nome
1 - BEATRIZ
2 - MARIA
3 - CARLOS
4 - MARIA
5 - JÉSSICA
6 - HENRIQUE
How can I make a SELECT
that gives me a list with the names sorted by ID descendente
, however, a certain NAME first and below the continuation?
Type: first the MARIAS and below the alphabetical continuation and ID DESC
SELECT * FROM PESSOAS WHERE nome='MARIA' OR nome!='MARIA' ORDER BY nome, id DESC
In this way, not the error, but the query
returns me the list normally ordered only by id DESC
and not with the name MARIA at the top of the listing.