Alex Rivera | Logout

what is the difference between GROUP BY and ORDER BY in sql

Asked 2009-08-14T11:50:07.497
130

When do you use which in general? Examples are highly encouraged!

I am referring so MySql, but can't imagine the concept being different on another DBMS

Edit
Report

1 Answer

1

ORDER BY shows a field in ascending or descending order. While GROUP BY shows same fieldnames, id's etc in only one output.

answered 2012-04-04T06:01:49.210

Your Answer