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

L24 SQL-Functions

Uploaded by

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

L24 SQL-Functions

Uploaded by

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

SQL Tutorial

SQL

Copyright IntelliPaat. All rights reserved


Agenda

1 MIN() Function

2 MAX() Function

3 COUNT() Function

4 SUM() Function

5 AVG() Function

Copyright IntelliPaat. All rights reserved


MIN() Function

MIN() function gives you the smallest value.

SELECT MIN(col_name) FROM


table_name;

Copyright IntelliPaat. All rights reserved


MAX() Function

MAX() function gives you the largest value.

SELECT MAX(col_name) FROM


table_name;

Copyright IntelliPaat. All rights reserved


COUNT() Function

COUNT() function returns the number of rows that match with a specific criteria.

FEMALE MALE

33 67
Copyright IntelliPaat. All rights reserved
COUNT() Function

COUNT() function returns the number of rows that match with a specific criteria.

SELECT COUNT(*) FROM table_name


WHERE condition;

Copyright IntelliPaat. All rights reserved


SUM() Function

SUM() function gives the total sum of a numeric column.

SELECT SUM(col_name) FROM


table_name;

Copyright IntelliPaat. All rights reserved


AVG() Function

AVG() function gives the average value of a numeric column.

SELECT SUM(col_name) FROM


table_name;

Copyright IntelliPaat. All rights reserved


Thank You

Copyright IntelliPaat. All rights reserved

You might also like