SELECT country,city
FROM customers
GROUP BY country
ORDER BY city DESC
Answer Posted / vardhan rao
This Query will delete the duplicate values in GROUP BY clause
| Is This Answer Correct ? | 3 Yes | 5 No |
Post New Answer View All Answers
Does mysql automatically index foreign keys?
Can we store images in mysql database?
What is database clustering in mysql?
How you will show all data from a table.
What are the differences between char and varchar data types?
How can we find out which auto increment was assigned on Last insert?
How to get current MySQL version?
What is a csv table?
How to enable or disable a row of a table using MySQL in struts?
using primary can we relate two table, with out foreign key?
Does mysql scale well?
How can I create a database in mysql?
How can you count the total number of records of any table?
How do I restore a mysql database?
What is triggers and how it can be used in mysql?