Wednesday, 1 April 2015

Difference between group by and order by ?



ORDER BY alters the order in which items are returned.
GROUP BY will aggregate records by the specified columns which allows you to perform aggregation functions on non-grouped columns (such as SUM, COUNT, AVG, etc).

No comments:

Post a Comment