0% found this document useful (0 votes)
12 views

20 SQL – Functions in SQL

The document provides an overview of various SQL functions, categorized into aggregate, string, date and time, mathematical, conditional, and window/analytical functions. It specifically details aggregate functions, explaining their purpose and providing examples for COUNT(), SUM(), AVG(), MAX(), and MIN(). Each function is illustrated with SQL queries and their expected results.

Uploaded by

itmanarif
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views

20 SQL – Functions in SQL

The document provides an overview of various SQL functions, categorized into aggregate, string, date and time, mathematical, conditional, and window/analytical functions. It specifically details aggregate functions, explaining their purpose and providing examples for COUNT(), SUM(), AVG(), MAX(), and MIN(). Each function is illustrated with SQL queries and their expected results.

Uploaded by

itmanarif
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

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;

You might also like