DBMS 2
DBMS 2
DBMS 2
1. MIN
The MIN() function returns the smallest value of the selected column.
Syntax:
SELECT MIN(column_name)
FROM table_name
WHERE condition;
Output:
2. MAX
The MAX() function returns the largest value of the selected column.
Syntax:
SELECT MAX(column_name)
FROM table_name
WHERE condition;
Output:
3. COUNT
The COUNT() function returns the number of rows that matches a specified criterion.
Syntax:
SELECT COUNT(column_name)
FROM table_name
WHERE condition;
Output:
4. AVG
Syntax:
SELECT AVG(column_name)
FROM table_name
WHERE condition;
Output:
5. SUM
Syntax:
Output: