I have a table called ‘customers’, and I have to sort it first by country and by city, which I have successfully done.
Using this code:
SELECT *
FROM customers
ORDER BY Country, City
But from the output that I have, how do I print only the list of cities?
My table has several attributes or columns such as companyName, contactName, etc…
Thank you very much.
Replace
*with the columns you want to show –Cityin your case.