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 / hareesha k

GROUP BY is used to group values from a column, and, if
necessary, perform calculations on that column. We can use
aggregation functions (e.g. COUNT, SUM, AVG) on the grouped
column.
The result of the GROUP BY is ordered by the column that
grouped.

The ORDER BY clause is used only for ordering(Sorting) the
query results.Asc by default.

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to get nth highest salary from table in a mysql?

996


How to drop an existing index in mysql?

1150


In how many ways we can retrieve data in the result set of mysql using php?

1175


How to rename an existing table in mysql?

1080


What is information_schema in mysql?

1047


What is the difference between mysql and pdo?

1053


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?

2651


Why do we use preparedstatement?

983


How do I delete a mysql user?

887


What does "i_am_a_dummy flag" do in mysql?

994


Is mysql a free database?

981


what is the default port for mysql server? : Mysql dba

1099


How do I disconnect mysql workbench?

1112


Is mysql free software?

1013


Is mariadb better than mysql?

1096