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

Answer Posted / jamsheed

Order by keyword is used to sort the result set in asc & desc order.

Group by keyword is used to group the resultset. It is used to find distinct values also.

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of count function in mysql?

554


Explain Access Control Lists.

534


Does uninstalling mysql delete database?

482


What is deterministic in mysql?

499


How can we get the number of rows affected by query?

545






Is mysql written in c?

480


how you will show all records not containing the name "sonia" and the phone number '9876543210' order by the phone_number field.

502


How do I run mysql?

482


How can we optimize stored procedure?

480


How Switch (select or use) to a database.

529


What is the use of mysqli_fetch_array?

477


How do I delete a mysql user?

456


What is “i_am_a_dump” flag in mysql?

555


Explain about reporting services of MYSQL?

607


What is the function of myisamchk?

558