What Are Group Functions in Query Statements in MS SQL Server?
Submitted by: AdministratorGroup functions are functions applied to a group of rows. Examples of group functions are:
* COUNT(*) - Returns the number of rows in the group.
* MIN(exp) - Returns the minimum value of the expression evaluated on each row of the group.
* MAX(exp) - Returns the maximum value of the expression evaluated on each row of the group.
* AVG(exp) - Returns the average value of the expression evaluated on each row of the group.
* SUM(exp) - Returns the sum value of the expression evaluated on each row of the group.
* COUNTDISTINCT(exp) - Returns the number of distinct values of the expression evaluated on each row of the group.
Submitted by: Administrator
* COUNT(*) - Returns the number of rows in the group.
* MIN(exp) - Returns the minimum value of the expression evaluated on each row of the group.
* MAX(exp) - Returns the maximum value of the expression evaluated on each row of the group.
* AVG(exp) - Returns the average value of the expression evaluated on each row of the group.
* SUM(exp) - Returns the sum value of the expression evaluated on each row of the group.
* COUNTDISTINCT(exp) - Returns the number of distinct values of the expression evaluated on each row of the group.
Submitted by: Administrator
Read Online MS SQL Server Job Interview Questions And Answers
Top MS SQL Server Questions
☺ | What Are the Requirements on SQL Server Network Connections? |
☺ | PHP MSSQL - How To Delete Existing Rows in a Table? |
☺ | How To Execute the Cursor Queries with "OPEN" Statements? |
☺ | What Happens If Strings Are Casted into Wrong Code Pages in MS SQL Server? |
☺ | Can You Roll Back the DDL Statement in a Trigger? |
Top Databases Programming Categories
☺ | RDBMS Interview Questions. |
☺ | SQL Interview Questions. |
☺ | SSRS Interview Questions. |
☺ | Database Administrator (DBA) Interview Questions. |
☺ | Sybase Interview Questions. |