We can use group by clause with:
Non aggregate functions only
Aggregate functions only
Both 1 & 2
None of the above