Question: what is difference between group by and order by in sql?
Answer: To summarize, the key difference between order by and group by is: ORDER BY is used to sort a result by a list of columns or expressions. GROUP BY is used to create unique combinations of a list of columns that can be used to form summaries.