Answer Posted / vampire007
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 |
Post New Answer View All Answers
How can I check if a view exists in a sql server database?
What is the name of the system variable that returns the number of rows affected by a SQL statement?
Explain the Ways to improve the performance of a sql azure database?
If no size is defined while creating the database, what size will the database have?
how to define testing of network layers? : Sql server database administration
Explain datetimeoffset data type in sal server 2008?
what is a sub-report?
Does the order of columns in update statements matter?
What is the syntax to execute the sys.dm_db_missing_index_details? : sql server database administration
How to disable stored procedure sql server?
Can we join two tables without primary key?
To automatically record the time on which the data was modified in a table, which data type should you choose for the column?
What do mean by xml datatype?
What does the on update no action do?
Explain an automatic checkpoint