Skip to content

This repo is having the codes used in SQL course I've made with GFG.

License

TkWarrior/SQL-for-Data-Analysis

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SQL-for-Data-Analysis

This repository contains a collection of SQL scripts and resources designed for the in SQL course I've made with GFG.

Introduction

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.

Getting Started

Prerequisites

  • SQL database management system (MySQL)
  • Basic knowledge of SQL

Cloning the Repository

git clone https://github.com/AshishJangra27/SQL-for-Data-Analysis.git
cd SQL-for-Data-Analysis

Learning Path

Week 1

  1. Introduction to Databases

    • Basic concepts and architecture of databases.
  2. Introduction to SQL & Setup

    • Setting up your SQL environment and learning basic SQL syntax.
  3. Data Retrieval with SQL

    • Retrieving data using SELECT statements.

Week 2

  1. Cases in SQL

    • Handling different scenarios and conditions using CASE statements.
  2. Introduction to DDL Commands

    • Creating and modifying database objects using DDL commands.
  3. Keys & Constraints

    • Defining primary keys, foreign keys, and constraints to maintain data integrity.

Week 3

  1. Insert Data in a Table

    • Techniques for inserting new data into tables.
  2. Update Data from a Table

    • Methods for updating existing data in tables.
  3. Delete Data from a Table

    • Deleting data from tables.

Week 4

  1. SQL in Action

    • Practical examples of SQL queries in real-world scenarios.
  2. Pattern Matching

    • Using LIKE and regular expressions for pattern matching.
  3. Aggregate Functions

    • Using functions like SUM, AVG, COUNT for data aggregation.

Week 5

  1. Grouping and Filtering Data

    • Grouping data with GROUP BY and filtering groups with HAVING.
  2. Working with Subqueries

    • Using subqueries for complex data retrieval.
  3. Joins in Action

    • Combining data from multiple tables using different types of joins.

Week 6

  1. Set Operators in Action

    • Using UNION, INTERSECT, and EXCEPT operators to combine query results.
  2. Restaurant Data Analysis with SQL

    • Analyzing restaurant data with SQL queries.
  3. Window Functions

    • Using window functions like ROW_NUMBER, RANK, and DENSE_RANK.

Week 7

  1. Ranks in SQL

    • Ranking data using SQL.
  2. Advanced Window Functions

    • Advanced uses of window functions for data analysis.
  3. Views in SQL

    • Creating and using views to simplify data access.

Week 8

  1. Table Aliases

    • Using aliases to make queries more readable.
  2. Functions & Procedures

    • Creating and using functions and stored procedures in SQL.
  3. Transactions

    • Managing transactions to ensure data integrity.

Week 9

  1. Errors & Exceptions

    • Handling errors and exceptions in SQL.
  2. Introduction to Data Cleaning

    • Overview of data cleaning techniques.
  3. Handling Missing Values

    • Techniques for handling missing data.

Week 10

  1. Handling Duplicate Values

    • Identifying and removing duplicate data.
  2. Handling Outliers

    • Methods for detecting and handling outliers.
  3. Working with Dates

    • Manipulating date and time data in SQL.

Week 11

  1. Data Cleaning

    • Comprehensive techniques for cleaning data.
  2. Restaurant Data Cleaning

    • Cleaning and preparing restaurant data for analysis.
  3. Analyzing Query Execution

    • Using EXPLAIN to analyze query execution plans.

Week 12

  1. Improving Query Performance

    • Techniques for optimizing SQL queries.
  2. Table Partitioning

    • Partitioning tables to improve query performance.
  3. Indexing in SQL

    • Creating and using indexes to speed up data retrieval.

Week 13

  1. Common Table Expressions

    • Using CTEs to simplify complex queries.
  2. SQL with ChatGPT

    • Using ChatGPT for SQL query generation and assistance.

Who am I?

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.


Other Useful Links:

LinkedIn - https://linkedin.com/in/ashish-jangra

Instagram - https://instagram.com/ashish_zangra

Facebook - https://facebook.com/ashishzangra

About

This repo is having the codes used in SQL course I've made with GFG.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published