Day 21: Learn Window Functions in SQL | RANK(), ROW_NUMBER(), PARTITION BY in PostgreSQL

Subscribers:
10,900
Published on ● Video Link: https://www.youtube.com/watch?v=qDTZYKKRkpo



Duration: 0:00
14 views
0


Welcome to Day 21 of my 30-Day SQL Challenge!
Today I learned one of the most advanced and powerful concepts in SQL β€” Window Functions 🧠

πŸš€ What You'll Learn:
ROW_NUMBER() β€” unique row position

RANK() vs DENSE_RANK() β€” ranking with or without gaps

PARTITION BY β€” reset calculations per group (e.g. per customer or category)

OVER() clause β€” how window functions work under the hood

Window functions are used in:
βœ… Leaderboards
βœ… Running totals
βœ… Deduplicating rows
βœ… Complex data analysis & reporting

πŸ“Œ Tools Used: PostgreSQL + pgAdmin
πŸ“… #Day21 of #30DayDataChallenge
πŸ“Ί Channel: Tech With Nicks
πŸ”’ All data is fictional and for educational purposes only
#Day21 #WindowFunctions #SQLChallenge #ROWNUMBER #RANK #DENSERANK #PostgreSQL #TechWithNicks #LearnSQL #pgAdmin #DataAnalytics #30DaySQLChallenge




Other Videos By Tech With Nicks


2025-07-12Create a dynamic Drop down filter based on another cell
2025-07-07Day 30: Full SQL Revision for Data Analysts | PostgreSQL Recap from Basics to Advanced πŸ’»πŸ”₯
2025-07-06Day 29: Excel for Data Analysis – Full Revision | From Formulas to Dashboard in 1 Day πŸ’»
2025-07-05Day 28: How I Created My Data Analyst Resume Using a Template | Beginner-Friendly Resume Tips!
2025-07-05Day 27: Optimizing LinkedIn + Naukri for Data Analyst Jobs | 645 HR Searches & 18 Invites in 1 Month
2025-07-04Day 26: CRM Business Performance | Zoho Analytics + SQL + Excel | CRM Churn & Revenue Insights
2025-07-02Day 25: HR Analyst Dashboard in Power BI | Employee Insights Project for Data Analyst Portfolio
2025-07-01Day 24: Data Analyst SQL Project πŸ” | Customer + Orders Analysis in PostgreSQL | Real-World Business
2025-07-01Day 23: Mastering CTEs in SQL | WITH Clause & Common Table Expressions in PostgreSQL
2025-07-01Day 22: SQL JOINS Explained | INNER, LEFT, RIGHT, FULL JOIN in PostgreSQL with Real Examples
2025-06-25Day 21: Learn Window Functions in SQL | RANK(), ROW_NUMBER(), PARTITION BY in PostgreSQL
2025-06-24Day 20: COALESCE Function in SQL Explained with Examples | PostgreSQL Data Cleaning Tip πŸ’‘
2025-06-24Day 19: Mastering CASE Function in SQL | PostgreSQL Logic Building with Real Examples | Learn SQL
2025-06-21How to Make Drop-Down List in Excel | Data Validation Excel Tip
2025-06-20IF with AND in Excel | Apply Multiple Conditions Easily
2025-06-19Excel Progress Bar with Conditional Formatting | Dashboard Tricks
2025-06-19Day 18: Date & Time Functions in SQL | Extract, NOW(), AGE(), CURRENT_DATE & More | Learn SQL Fast
2025-06-19Day 17: Master SQL String Functions | Learn UPPER, LOWER, LENGTH, SUBSTRING, TRIM | 30-Day SQL
2025-06-18Remove Duplicates in Excel with One Click | Excel Tips for Beginners
2025-06-18Extract First Names in Excel Without Formula | Excel Flash Fill Trick
2025-06-18How to Split Full Name into First and Last in Excel | Excel Formula Tip