Goup by clause
Example on table data
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Abhay ShankerRank #375 · 6.7K reputationPosted Apr 14, 2014, 4:04 AM EDT
It follows where clause in select statement and preceds the order by
Select department, sum(sales) from order group by (department)
Rajneesh RaiRank #1,902 · 777 reputationPosted Apr 14, 2014, 4:11 AM EDT
Group By : Groups a selected set of rows into a set of summary rows by the values of one or more columns or expression.
For example: consider the following simple example,
Hope you got it :)
For more details go through following links :
1. http://www.w3schools.com/sql/sql_groupby.asp
2. http://technet.microsoft.com/en-us/library/ms177673.aspx
Munesh SharmaRank #174 · 13.9K reputationPosted Apr 14, 2014, 4:12 AM EDT
Jignesh TrivediRank #16 · 50.3K reputationPosted Apr 14, 2014, 4:54 AM EDT
Hi,
what exact you looking for Group by clause?
Please refer below link it might help you.
http://technet.microsoft.com/en-us/library/ms177673.aspx