Why we need a group by clause?
Answers were Sorted based on User's Feedback
We use GroupBy clause to analyze data in table,by means of
various sql server aggregate functions like SUM(), AVERAGE
() etc., according to some domain.
For eg., If we want to know the sales done by a every
employee, then we would use somewhat this kind of query:
/**
select employeeid, count(*)
from orders
groupby employeeid
order by employeeid
**/
| Is This Answer Correct ? | 7 Yes | 1 No |
Answer / satyanarayana
In order to provide a condition to the select statement
either by group by column or aggregate function
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / ricky
while we are using a aggregate function we use the group by
clause....
| Is This Answer Correct ? | 2 Yes | 1 No |
WHICH INDEX IS FAST CLUSTER AND NON CLUSTER INDEX
4 Answers CarrizalSoft Technologies, L&T,
what's the difference between delete table and truncate table commands? : Sql server database administration
How do I find the port number for sql server?
What is entity data services?
What is view in sql?
we have emp table like Ename,EDOJ,EDOB with Column structure.but we want to know the employee Age.How? Any Body Plz
How many nested transaction can possible in sql server?
How to test subquery results with the exists operator?
Can we use where clause with group by?
How to see the event list of an existing trigger using sys.trigger_events?
How to optimize stored procedures in sql server?
When do u use clustered index and non-clustered index?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)