If I have a table something like this example:
- Table: Users
- id - name - city
- 1 George Seattle
- 2 Sam Seatle-2
- 3 John New York
- 4 Amy New York-2
- 5 Eric Chicago
- 6 Nick New York-3
And using that table I want to my query to return the rows which contain New York first,New York-2,---- and then the rest of the rows alphabetized by city. Is this possible to do using only one query?
ord
and setting true to new york cities. Then you doselect * from table order by ord, city
– Andrew