| Start | ||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| SUM() Returns sum of numeric values in a given column. We have table as shown in figure that will be used to perform different aggregate functions. The table name is Marksheet. The In the above example if we have another row like this: This row will not be consider in sum calculation |
||||||||||||||||||||||||||||
| AVG() Returns average of numeric values in a given column. We have table as shown in figure that will be used to perform different aggregate functions. The table name is Marksheet. The In the above example if we have another row like this: This row will not be consider in average calculation |
||||||||||||||||||||||||||||
| MAX() Returns the largest value in a given column. We have table as shown in figure that will be used to perform different aggregate functions. The table name is Marksheet. |
||||||||||||||||||||||||||||
| MIN() Returns the smallest value in a given column. We have table as shown in figure that will be used to perform different aggregate functions. The table name is Marksheet. |
||||||||||||||||||||||||||||
| COUNT() Returns the total number of values in a given column. We have table as shown in figure that will be used to perform different aggregate functions. The table name is Marksheet. The In the above example if we have another row like this: This row will not be consider in count calculation NOTE The function Example |
||||||||||||||||||||||||||||
| COUNT(Column_Name) with GROUP BY Column_Name Most of the time we like to get the total number of occurrence of a column value in a table for example: TABLE NAME : REPORTS
Syntax
|
Read Article
https://develop.horje.com/learn/1434/reference