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 drop an existing table in mysql?

547


Do I need to pay for mysql?

484


What are date and time data types in mysql?

517


Why we use mysqli instead of mysql?

557


What is back end and front end?

459






How triggers can be used in mysql?

553


what are the different tables present in mysql? : Mysql dba

463


How to update database permissions/privilages.

536


How many threads can mysql handle?

498


What is the default port number of mysql?

497


What is logs in mysql?

480


Is mysql is a programming language?

517


How to use rank function in mysql?

470


What is the phantom problem?

493


What is mysql_query?

452