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...

What is the difference between GROUP BY and ORDER BY in
Sql?

Answer Posted / haritharavi

Order by clause is used to sort the rows in ascending or
descending order.Group by clause is used to sort/group a
number of rows together so as to apply aggregate functions.
So order by is only to sort the records where as group by
is to sort and find aggregate functions of each group.

Is This Answer Correct ?    32 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to convert character strings to dates?

1085


What are the differences between a primary key and foreign key?

1092


Is mysql and sql are same?

1071


How to get the number of rows selected or affected by a sql statement?

918


Can you tell a way to know the number of days between the two given dates in php?

1095


How can you retrieve a portion of any column value by using a select query?

918


What is clob in mysql

941


How to get data from mysql in php?

901


Is mysql port 3306 tcp or udp?

918


Write a command to list all databases in mysql?

1041


What is the maximum size of table in mysql?

1028


What can I do with mysql?

920


What are the other commands to know the structure of a table using mysql commands except explain command?

1035


Is mariadb faster than mysql?

964


How do I delete a table in mysql workbench?

1037