Group By Clause | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Group By Clause

Why is it necessary to use group by with aggregate function or vice veraa

23rd Sep 2020, 11:01 AM
anshu kulshrestha
anshu kulshrestha - avatar
1 Answer
0
Suppose we need to categorise people according to their department in the data base .We can simply use group by clause instead of using seperate select statements and joining them. we have many advantages using group by clause like group by with having clause , here having is used to filter further. Similarly there are other benefits. All these are used to make uour answer simple and easly understandable.
24th Sep 2020, 4:40 AM
Kavya
Kavya - avatar