Last answered:

02 Dec 2022

Posted on:

01 Dec 2022

0

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)
Instructor
Posted on:

02 Dec 2022

0

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

Submit an answer