SELECT country,city
FROM customers
GROUP BY country
ORDER BY city DESC
Answer Posted / rod sohrabi
It will only return 1 row per country and will display only the city that is reverse alphabetical order
| Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
What is general log in mysql?
Should I use pdo or mysqli?
Why mongodb is faster than mysql?
What is mysql connection limit?
Why use stored procedures in mysql?
what are the different tables present in mysql? : Mysql dba
How to list or view all databases from the mysql server.
Which is faster mysql or mongodb?
How can I connect mysql database?
What are mysql data types?
Do I need python for mysql?
What are the disadvantages of stored procedures?
What is delimiter in mysql stored procedure?
Is mysql open source?
How do I start mysql in linux?