Day – 20 :
Functions in SQL
Course created by Satish Dhawale | www.skillcourse.in
List of Functions in SQL
Aggregate Functions
String Functions
Date and Time Functions
Mathematical Functions
Conditional Functions
Window/Analytical Functions
Aggregate functions perform calculations on a set of values and
return a single value.
Function Description Example Result
Returns the number of SELECT COUNT(*) FROM
COUNT() Total number of rows
rows employees;
Returns the sum of a SELECT SUM(salary) Total salary of all
SUM()
column FROM employees; employees
Returns the average SELECT AVG(salary)
AVG() Average salary
value FROM employees;
Returns the maximum SELECT MAX(salary)
MAX() Highest salary
value FROM employees;
Returns the minimum SELECT MIN(salary)
MIN() Lowest salary
value FROM employees;