Mastering SQL - PostgreSQL: Advanced SQL - Ranking and Filtering - Recap

Опубликовано: 05 Август 2026
на канале: itversity
438
4

In this PostgreSQL tutorial, learn how to compute ranks and filter data to get the top 5 products by revenue for each day. This video walks through different approaches, including using raw tables, views, and precomputed tables to calculate daily product revenue, assign ranks, and filter the data to extract the top products. Understand the step-by-step process to break down complex queries and optimize your results using subqueries.

Key Concepts:
✔️ Daily product revenue computation
✔️ Ranking products by revenue
✔️ Filtering top products using subqueries
✔️ Using views and precomputed tables for optimized performance
✔️ Two levels of subqueries for filtering
✔️ Approaches to compute ranks with RANK, DENSE RANK, and ROW NUMBER

Timestamps
0:00 - Introduction to Top Products Ranking
0:09 - Rank Calculation and Filtering Top 5 Products
1:23 - Using Raw Tables vs Views for Ranking
2:08 - Filtering Data Using Subqueries
2:32 - Working with Precomputed Tables and Views
3:01 - Recap and Final Solution for Filtering Top Products by Revenue

Continue Your Learning Journey with PostgreSQL! 🚀
✅ Previous Video:    • Mastering SQL - PostgreSQL: Advanced SQL -...  
✅ Next Video:    • Introduction to SQL Performance Tuning: A ...  
✅ Full Course:    • Master PostgreSQL: Complete Beginner to Ex...  

Connect with Us:
Newsletter: http://notifyme.itversity.com
LinkedIn:   / itversity  
Facebook:   / itversity  
Twitter:   / itversity  
Instagram:   / itversity  

👉 Don’t forget to subscribe to    / itversityin   YouTube channel for more tutorials!

#sql #database #postgresql #sqlranking #sqlfiltering