0% found this document useful (0 votes)
20 views29 pages

1733915167530

The document outlines a comprehensive SQL course designed for data analysts, covering topics such as data selection, aggregation, joining tables, and advanced data analysis techniques. The course spans 5 weeks with a total of 18 to 23 hours of instruction, divided into 10 lectures. It also includes optional content on data reporting and visualization, along with practical applications of SQL in real-world scenarios.
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)
20 views29 pages

1733915167530

The document outlines a comprehensive SQL course designed for data analysts, covering topics such as data selection, aggregation, joining tables, and advanced data analysis techniques. The course spans 5 weeks with a total of 18 to 23 hours of instruction, divided into 10 lectures. It also includes optional content on data reporting and visualization, along with practical applications of SQL in real-world scenarios.
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/ 29

Data Analyst :

Mahmoud El-Desuky

Intensive SQL for Analysts


Intermediate SQL Query for analyzing Big Data
Course Outline
Course Outline:
1. Introduction to SQL and Databases
2. Data Selection and Filtering
3. Aggregating Data
4. Joining Tables
5. Subqueries and Nested Queries
6. Window Functions and Analytic Functions
7. Date and Time Functions
8. Data Transformation and Case Statements
9. Advanced Data Analysis
10. Data Reporting and Visualization (Completed Project)
Course Outline:
1. Introduction to SQL and Databases
- What is SQL?
- Types of databases (relational vs non-relational)
- Basic database concepts (tables, rows, columns)
- SQL syntax (keywords, clauses)
2. Data Selection and Filtering
- Using WHERE to filter rows
- Comparison operators (=, >, <, >=, <=, <>)
- Logical operators (AND, OR, NOT)
- Pattern matching with LIKE
- Range matching with BETWEEN
- Null values with IS NULL
Course Outline:
3. Aggregating Data
- Aggregate functions: COUNT(), SUM(), AVG(), MIN(), MAX()
- Grouping data with GROUP BY
- Filtering grouped data with HAVING
4. Joining Tables
- Types of joins: INNER JOIN, LEFT JOIN, RIGHT JOIN, FULL JOIN
- Using ON to specify join conditions
- Combining data from different related tables
5. Subqueries and Nested Queries
- Subqueries in SELECT, FROM, and WHERE clauses
- Correlated subqueries vs. non-correlated subqueries
- Using subqueries for complex filtering and calculations
Course Outline:
6. Window Functions and Analytic Functions
- Window functions: ROW_NUMBER(), RANK(), DENSE_RANK()
- Calculating running totals and moving averages
- Using LAG() and LEAD() for time-based analysis
- Partitioning data with PARTITION BY

7. Date and Time Functions


- Date and time functions: GETDATE(), DATEADD(), DATEDIFF(), YEAR(), MONTH(), DAY()
- Formatting dates using FORMAT()
- Extracting parts of a date
- - Date arithmetic
8. Data Transformation and Case Statements
- Using CASE statements to categorize or bin data
- Data transformations (e.g., converting null values, changing formats)
Course Outline:
9. Advanced Data Analysis
- Calculating month-over-month (MoM) and year-over-year (YoY) growth
- Running totals and cumulative sums
- Analyzing trends over time
- Creating cohort analysis using window functions

10. Data Reporting and Visualization (Optional)


- Exporting SQL query results to Excel or CSV for reporting
- Basic visualization techniques (e.g., bar charts, line graphs)
- SQL integration with reporting tools (e.g., Power BI
Course Duration
Course Duration:

5 Weeks 18 - 23 Total Hours

10 Lecture
1.5 - 2 Hours
Course Duration:
Overall Course Duration: 5 Weeks
Days: 2 days a week ( Friday & Saturday )
Total Hours :
• Minimum: 18 hours
• Maximum: 23 hours

Total Lectures: 10
Lecture length:
• Minimum: 1.5 hours
• Maximum: 2 hours
Course Duration:
1. Introduction to SQL and Databases – 1.5 to 2 hours - Fri
2. Data Selection and Filtering 1.5 to 2 hours -Sat
3. Aggregating Data 1.5 to 2 hours- Fri
4. Joining Tables 1.5 to 2 hours-Sat
5. Subqueries and Nested Queries 1.5 to 2 hours- Fri
6. Window Functions and Analytic Functions 1.5 to 2 hours- sat
7. Date and Time Functions – 1.5 to 2 hours-Fri
8. Data Transformation and Case Statements – 1.5 to 2 hours- Sat
9. Advanced Data Analysis – 1.5 to 2 hours-Fri
10.Data Reporting and Visualization (Optional) – 1.5 to 2 hours- Sat
Samples
Module 1: Concepts

Relational Database :
It’s a set of related tables that
describe a fact.
Module 1: Concepts
Module 1: Concepts
Primary Key 1
The distinct value that identifier each
row in the table
Foreign Key
Module 1: Concepts The value that used to link
between two tables

1
1
1
1

1
1
1 1
1
Database Advantages
Database Advantages
• Scalable
• Data integrity
• Centeralized
• Security
• Data consistent redundancy
SQL
Structured Query Language
SQL
It’s a programming tool to communicate with data by doing essential
tasks as
• Create
• Insert
• Select
• Update
• Delete
Query
Set of instructions
Query Statements
• DQL
• DML
• DCL
• DDL
Query Statements
Select (Column filter)
(Column) | Calculations
From (Table filter )
(table)
Where (Row filter)
(Condition)
Query Statements
Select (Column filter)
CustomerName , PurchaseAmount
From (Table filter)
Orders
Module 1: Environment
• Database server
• DBMS
• Installing
Database Server
a database server stores and retrieves data as requested by other software applications on
the same computer or a remote computer using the client-server model. Microsoft
provides APIs to access SQL Server over the internet as a web service.

DBMS
A database management system is a set of software tools that enable users to
manage their data, like ( MS SQL server, MySQL , and Oracle ).
Microsoft provides APIs to access SQL Server over the internet as a web
service.
Module 1: Concepts and Environment
• Database
• SQL
• Query
• DB server
• DBMS
Thanks

You might also like