Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

SELECT country,city
FROM customers
GROUP BY country
ORDER BY city DESC

Answer Posted / manoj pandey

This is wrong because there is no aggregate function in the
query when a group by clause is used.

The above query could be like:

1. SELECT country, count(city)
2. FROM customers
3. GROUP BY country
4. ORDER BY country DESC

* Correction at line 1 & 4.

Is This Answer Correct ?    12 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is offset limit?

940


How can I insert images into a Mysql database?

1043


What is difference between mongodb and mysql?

899


How do I insert an image into mysql workbench?

941


Why mongodb is faster than mysql?

869


What is max_used_connections in mysql?

931


What is the insert?

865


How to check if value already exists in mysql database in php?

873


What is row level locking?

907


What is difference between mysql mysqli and pdo?

924


What is the command used to create a database using php and mysql?

1130


How many mysql connections can handle?

884


What is max connections in mysql?

907


Is mysql better than oracle?

915


Does mysql case matter?

891