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


Please Help Members By Posting Answers For Below Questions

How do I kill a mysql connection?

658


Who developed mysql?

751


Explain about the architecture of MYSQL?

727


What are the advantages/disadvantages of mysql and php?

664


What is the difference between truncate and delete in mysql?

776






i made a table whih contain a column "Photo" with image data type and i want to insert the byte of a picture present in my hardisk using insert statement in that colum... so what will be my insert statement?

2349


Is mysql workbench a dbms?

734


Why to use char instead of varchar in the database?

766


Is mysql good for large database?

658


What are the two types of queries?

628


How do I change global variables in mysql?

647


In mysql, what is the default storage engine?

675


explain GROUPBY & HAVING clause with examples.

2004


How do I start mysql in ubuntu?

676


What is the default port for MySQL Server?

738