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

How can you count the total number of records of any table?

980


What is an example of a delimiter?

977


What is a transaction? Describe mysql transaction properties.

1165


How to load data files into tables with 'mysqlimport'?

1043


How do I view mysql logs?

935


How do I delete a row in mysql?

1024


What is the full form of mysql?

1063


How do I disconnect mysql workbench?

1116


How do I start mysql in mysql workbench?

1007


What is mysql server used for?

998


What do ddl, dml, and dcl stand for?

965


How can I remotely connect to mysql database?

967


What is mysql community server?

978


How to find second highest salary from a table?

1063


Can you tell what are various ways to create an index?

918