Resolved: confusion using group by and order by
does it is neccesary to use 'group by' with 'order by' always and vice-versa
1 answers ( 1 marked as helpful)
Tsvetelin Tsonkov
Instructor
Hi Ayush!
Thanks for reaching out.
No, it is not mandatory. The ORDER BY clause is simply to sort the result set.
Hope this helps.
Best,
Tsvetelin