Skip to content

Gowthamch9/SQL-for-Data-Engineering

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

9 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ—„๏ธ SQL for Data Engineering

This repository demonstrates my SQL skills applied in both real-world data engineering workflows and practice queries. It includes a Capstone Project highlighting end-to-end SQL-driven data transformation and practice exercises for mastering key SQL concepts.


๐Ÿ“‚ Repository Structure

  • Capstone_Project/ โ†’ Contains SQL scripts for an end-to-end data engineering project, including data transformation.
  • SQL_Practicefiles/ โ†’ Contains SQL practice queries covering basics to advanced topics.

๐Ÿ› ๏ธ Skills & Concepts Demonstrated

  • Data Extraction & Transformation

    • Writing optimized queries to join, clean, and filter raw datasets
    • Building reusable Views for downstream analytics
    • Applying Window Functions (ROW_NUMBER, RANK, LAG, LEAD)
  • Data Modeling & Aggregations

    • Summarizing business KPIs (revenue, orders, growth rates)
    • Creating CTEs & Subqueries for modular design
    • Designing layered queries for staging and final analytical views
  • Advanced SQL for Data Engineering

    • Using PIVOT / UNPIVOT for reshaping datasets
    • CROSS APPLY and OUTER APPLY for subquery joins
    • Implementing Stored Procedures for repeatable logic
    • Applying query optimization techniques for performance

โšก Example Queries

1. Customer Retention Analysis (Window Function)

SELECT 
    CustomerID,
    OrderDate,
    LAG(OrderDate) OVER (PARTITION BY CustomerID ORDER BY OrderDate) AS PreviousOrderDate,
    DATEDIFF(DAY, LAG(OrderDate) OVER (PARTITION BY CustomerID ORDER BY OrderDate), OrderDate) AS DaysBetweenOrders
FROM Orders;

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors