This repository contains a collection of SQL scripts and resources designed for the in SQL course I've made with GFG.
SQL (Structured Query Language) is essential for managing and analyzing data in relational databases. This repository provides practical examples and best practices for using SQL effectively in data analysis.
- SQL database management system (MySQL)
- Basic knowledge of SQL
git clone https://github.com/AshishJangra27/SQL-for-Data-Analysis.git
cd SQL-for-Data-Analysis-
Introduction to Databases
- Basic concepts and architecture of databases.
-
Introduction to SQL & Setup
- Setting up your SQL environment and learning basic SQL syntax.
-
Data Retrieval with SQL
- Retrieving data using
SELECTstatements.
- Retrieving data using
-
Cases in SQL
- Handling different scenarios and conditions using
CASEstatements.
- Handling different scenarios and conditions using
-
Introduction to DDL Commands
- Creating and modifying database objects using DDL commands.
-
Keys & Constraints
- Defining primary keys, foreign keys, and constraints to maintain data integrity.
-
Insert Data in a Table
- Techniques for inserting new data into tables.
-
Update Data from a Table
- Methods for updating existing data in tables.
-
Delete Data from a Table
- Deleting data from tables.
-
SQL in Action
- Practical examples of SQL queries in real-world scenarios.
-
Pattern Matching
- Using
LIKEand regular expressions for pattern matching.
- Using
-
Aggregate Functions
- Using functions like
SUM,AVG,COUNTfor data aggregation.
- Using functions like
-
Grouping and Filtering Data
- Grouping data with
GROUP BYand filtering groups withHAVING.
- Grouping data with
-
Working with Subqueries
- Using subqueries for complex data retrieval.
-
Joins in Action
- Combining data from multiple tables using different types of joins.
-
Set Operators in Action
- Using
UNION,INTERSECT, andEXCEPToperators to combine query results.
- Using
-
Restaurant Data Analysis with SQL
- Analyzing restaurant data with SQL queries.
-
Window Functions
- Using window functions like
ROW_NUMBER,RANK, andDENSE_RANK.
- Using window functions like
-
Ranks in SQL
- Ranking data using SQL.
-
Advanced Window Functions
- Advanced uses of window functions for data analysis.
-
Views in SQL
- Creating and using views to simplify data access.
-
Table Aliases
- Using aliases to make queries more readable.
-
Functions & Procedures
- Creating and using functions and stored procedures in SQL.
-
Transactions
- Managing transactions to ensure data integrity.
-
Errors & Exceptions
- Handling errors and exceptions in SQL.
-
Introduction to Data Cleaning
- Overview of data cleaning techniques.
-
Handling Missing Values
- Techniques for handling missing data.
-
Handling Duplicate Values
- Identifying and removing duplicate data.
-
Handling Outliers
- Methods for detecting and handling outliers.
-
Working with Dates
- Manipulating date and time data in SQL.
-
Data Cleaning
- Comprehensive techniques for cleaning data.
-
Restaurant Data Cleaning
- Cleaning and preparing restaurant data for analysis.
-
Analyzing Query Execution
- Using
EXPLAINto analyze query execution plans.
- Using
-
Improving Query Performance
- Techniques for optimizing SQL queries.
-
Table Partitioning
- Partitioning tables to improve query performance.
-
Indexing in SQL
- Creating and using indexes to speed up data retrieval.
-
Common Table Expressions
- Using CTEs to simplify complex queries.
-
SQL with ChatGPT
- Using ChatGPT for SQL query generation and assistance.
My name is Ashish and I'm an AI Trainer. I've trained more than 20000 students on different technologies like AI, Data Science, Computer Vision, and the Internet of Things. I'm passionate about teaching and giving students the skillset to learn cutting-edge skills.
LinkedIn - https://linkedin.com/in/ashish-jangra
Instagram - https://instagram.com/ashish_zangra
Facebook - https://facebook.com/ashishzangra