Mastering SQL - PostgreSQL: Advanced SQL - Overview of Analytic Functions

preview_player
Показать описание
Discover the power of analytic functions in PostgreSQL! 🚀 In this video, we provide a comprehensive overview of aggregate, windowing, and ranking functions such as SUM, AVG, RANK, and DENSE_RANK. You'll learn how to compute metrics like daily revenue and daily product revenue using SQL's advanced windowing capabilities. Perfect for data analysts and developers looking to master SQL for complex queries and data analysis.

What You’ll Learn
✔ Introduction to analytic functions (SUM, MIN, MAX, AVG)
✔ Overview of window functions (LEAD, LAG, FIRST_VALUE, LAST_VALUE)
✔ Understanding rank functions (RANK, DENSE_RANK, ROW_NUMBER)
✔ Using PARTITION BY and ORDER BY for data partitioning and sorting
✔ Creating tables for daily revenue and daily product revenue
✔ Practical use of CTAS (Create Table As Select)

Timestamps
* 0:03 - Categories of analytic functions: aggregate, windowing, ranking
* 0:24 - Using OVER, PARTITION BY, and ORDER BY clauses
* 0:41 - Syntax overview for aggregate and rank functions
* 1:49 - Cumulative metrics using ROWS BETWEEN clause
* 2:02 - Preparing tables for demonstrations: daily revenue and product revenue
* 3:00 - Creating daily_revenue table with aggregate functions
* 3:50 - Creating daily_product_revenue table with multiple partition keys
* 4:40 - Next steps: Deep dive into analytic, ranking, and windowing functions

Continue Your Learning Journey with PostgreSQL! 🚀

Connect with Us:

#sql, #database, #postgresl, #analyticfunction, #advancedsql
Рекомендации по теме
visit shbcf.ru