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

What is the difference between heap table and temporary table?

628


Can we write procedure in mysql?

513


Is mysqli deprecated?

508


Can we store videos in mysql database?

505


What is the data source name for mysql?

488






How to delete an existing column in a table?

499


Why mysql is open source?

498


What is difference between oracle sql and mysql?

505


What is the default port of mysql server?

524


Why do we use the mysql database server?

543


What is table level locking in mysql?

492


What are the advantages and disadvantages of using mysql?

516


In which language it is written?

539


Is mysql a distributed database?

482


Explain triggers and stored procedures?

504