0% found this document useful (0 votes)
7 views9 pages

SQL Functions

The document outlines essential SQL functions for data analysts, including aggregate, string, and date functions, along with their syntax. It provides a roadmap for becoming data analytics skill-ready in 90 days, covering SQL, data visualization, and hands-on projects. The author, Jayen Thakker, offers guidance for those interested in starting a data analytics career.

Uploaded by

suraj
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views9 pages

SQL Functions

The document outlines essential SQL functions for data analysts, including aggregate, string, and date functions, along with their syntax. It provides a roadmap for becoming data analytics skill-ready in 90 days, covering SQL, data visualization, and hands-on projects. The author, Jayen Thakker, offers guidance for those interested in starting a data analytics career.

Uploaded by

suraj
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

Jayen Thakker 2025

Data Analytics Mentor

Data Analytics

SQL Functions for


Data Analytics

SQL Functions every data analyst should know Swipe next


Jayen Thakker Swipe to
Data Analytics Mentor continue reading

Aggregate Functions
1. COUNT ()
This function returns the number of rows in a table or
the number of non-null values in a column.
Syntax :

SELECT COUNT(column_name) FROM table_name ;

2. SUM () :
This function returns the sum of all values in a numeric
column.
Syntax :

SELECT SUM(column_name) FROM table_name ;

3. AVG () :
This function returns the average of all values in a
numeric column.
Syntax :

SELECT AVG(column_name) FROM table_name ;

SQL Functions every data analyst should know 02


Jayen Thakker Swipe to
Data Analytics Mentor continue reading

4. MIN () :
This function returns the minimum value in a column.
Syntax :

SELECT MIN(column_name) FROM table_name ;

5. MAX () :
This function returns the maximum value in a column.
Syntax :

SELECT MAX(column_name) FROM table_name ;

SQL Functions every data analyst should know 03


Jayen Thakker Swipe to
Data Analytics Mentor continue reading

String Functions
7. CONCAT () :
This function is used to concatenate two or more strings
together.
Syntax :

SELECT CONCAT(String1, String2) FROM table_name ;

8. UPPER () :
This function is used to convert all character in a string
to uppercase.
Syntax :

SELECT SUM(column_name) FROM table_name ;

9. LOWER () :
This function is used to convert all characters in a
string to lowercase.
Syntax :

SELECT LOWER(String) FROM table_name ;

SQL Functions every data analyst should know 04


Jayen Thakker Swipe to
Data Analytics Mentor continue reading

10. LENGTH () :
This function is used to return the length of a string.
Syntax :

SELECT LENGTH(String) FROM table_name ;

11. TRIM () :
This function is used to remove leading or trailing spaces
from a string.
Syntax :

SELECT TRIM(String) FROM table_name ;

12. SUBSTRING () :
This function is used to extract a substring from a larger
string.

Syntax :
SELECT SUBSTRING(string, start_position, length)

FROM table_name;

SQL Functions every data analyst should know 05


Jayen Thakker Swipe to
Data Analytics Mentor continue reading

13. REPLACE () :
This function is used to replace a substring within a string
with a different substring.
Syntax :
SELECT REPLACE(string, old_substring, new_substring)
FROM table_name;

SQL Functions every data analyst should know 06


Jayen Thakker Swipe to
Data Analytics Mentor continue reading

Data Functions
14. CETDATE () :
This function returns the current date and time.
Syntax :

SELECT GETDATE() FROM table_name ;

15. DATEPART () :
This function is used to extract a specific part of a date,
such as the year, month, or day.
Syntax :

SELECT DATEPART(part, date) FROM table_name ;

16. DATEADD () :
This function is used to add a specified number of units
to a data or time value.

Syntax :

SELECT DA TEADD(unit, value, date) FROM table_name;

SQL Functions every data analyst should know 07


Jayen Thakker Swipe to
Data Analytics Mentor continue reading

17. DATEDIFF () :
This function is used to calculate the difference between
two dates or time values.
Syntax :
SELECT DATEDIFF(unit, start_date, end_date) FROM
table_name;

18 YEAR () :
This function is used to extract the year from a date value.
Syntax :

SELECT GETDATE() FROM table_name ;

SQL Functions every data analyst should know 08


Jayen Thakker
Data Analytics Mentor

BECOME DATA ANALYTICS


SKILL-READY IN 90 DAYS
Want a Data Analytics Career but
unsure where to begin?
My proven 90-day Roadmap gets
you job-ready:
Phase 1 (Days 1-30) 

→ SQL & Exce
Phase 2 (Days 31-60) 

→ Data Visualization Concepts & 

Tableau/Power B
Phase 3 (Days 61-90) 

→ Hands-on Projects & Job Prep

No confusion. Just clarity and action.


DM “READY”

I'll guide you instantly.

You might also like