https://github.com/rachit1084/sql-practice-ankit-bansal
Personal SQL problem-solving practice based on Ankit Bansal's YouTube series, with logic-driven solutions for analyst prep.
https://github.com/rachit1084/sql-practice-ankit-bansal
analytics data-analysis data-analyst interview-preparation logical-reasoning postgresql sql sql-practice
Last synced: 6 months ago
JSON representation
Personal SQL problem-solving practice based on Ankit Bansal's YouTube series, with logic-driven solutions for analyst prep.
- Host: GitHub
- URL: https://github.com/rachit1084/sql-practice-ankit-bansal
- Owner: Rachit1084
- Created: 2025-06-09T05:30:09.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2025-06-17T12:49:34.000Z (7 months ago)
- Last Synced: 2025-06-17T13:48:44.284Z (7 months ago)
- Topics: analytics, data-analysis, data-analyst, interview-preparation, logical-reasoning, postgresql, sql, sql-practice
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SQl-Practice-Ankit-Bansal
# π SQL Practice β Ankit Bansal YouTube Series
This repository contains my personal SQL practice based on Ankit Bansal's YouTube SQL problem series.
Instead of copying answers, I tried to **frame my own logic** to enhance my problem-solving and analytical thinking.
## π My Approach
While the questions are based on playlist, I made it a rule to:
- First solve each query **on my own** before watching the video.
- In case of differing logic, trying to understand the flaws or creating sample datasets using AI where my logic fails.
- Document any logic that differs from the original or adds something unique.
This helped me understand flow of logic & concept & develop deeper confidence in SQL logic β not just memorizing syntax.
## π Repo Structure
- `Q1_to_Q83/` : Folder containing `.sql` files for each question.
- `README.md` : This file, explaining purpose and approach.
## π§ Tools Used:
- PostgreSQL
- ChatGPT, Deepseek (AI support for sample generation & validation)
- Data from description in youtube videos
## π§ Topics Practiced:
- Window functions (RANK, LAG, LEAD)
- Aggregates & GROUP BY
- Subqueries & CTEs
- Joins (INNER, LEFT, SELF)
## π Credit:
Based on [Ankit Bansalβs SQL Interview Playlist] (https://youtu.be/qyAgWL066Vo?si=JVrWMEkksgWUyO6B)
---