<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Window Functions on DATATWEETS</title><link>/courses/sql/window-functions/</link><description>Recent content in Window Functions on DATATWEETS</description><generator>Hugo</generator><language>en</language><copyright>Copyright (c) 2025 Datatweets</copyright><lastBuildDate>Tue, 23 Jun 2026 09:00:00 +0200</lastBuildDate><atom:link href="/courses/sql/window-functions/index.xml" rel="self" type="application/rss+xml"/><item><title>Lesson 1 - Introduction to Window Functions</title><link>/courses/sql/window-functions/lesson-1-introduction-to-window-functions/</link><pubDate>Fri, 14 Nov 2025 09:00:00 +0200</pubDate><guid>/courses/sql/window-functions/lesson-1-introduction-to-window-functions/</guid><description>Discover how window functions aggregate data without collapsing rows. Learn the OVER() clause, split windows with PARTITION BY, and order them with ORDER BY.</description></item><item><title>Lesson 2 - Window Frames: ROWS and RANGE</title><link>/courses/sql/window-functions/lesson-2-window-frames-rows-and-range/</link><pubDate>Fri, 14 Nov 2025 09:00:00 +0200</pubDate><guid>/courses/sql/window-functions/lesson-2-window-frames-rows-and-range/</guid><description>Learn window framing. Use ROWS BETWEEN and RANGE BETWEEN with PRECEDING, FOLLOWING, CURRENT ROW, and UNBOUNDED to define exactly which rows a function sees.</description></item><item><title>Lesson 3 - Window Aggregate Functions</title><link>/courses/sql/window-functions/lesson-3-window-aggregate-functions/</link><pubDate>Fri, 14 Nov 2025 09:00:00 +0200</pubDate><guid>/courses/sql/window-functions/lesson-3-window-aggregate-functions/</guid><description>Use SUM, AVG, MIN, MAX, and COUNT as window functions. Add aggregates to non-aggregate and aggregate queries, and learn why window functions cannot go in WHERE.</description></item><item><title>Lesson 4 - Ranking Functions: ROW_NUMBER, RANK, and NTILE</title><link>/courses/sql/window-functions/lesson-4-ranking-functions-row_number-rank-and-ntile/</link><pubDate>Fri, 14 Nov 2025 09:00:00 +0200</pubDate><guid>/courses/sql/window-functions/lesson-4-ranking-functions-row_number-rank-and-ntile/</guid><description>Rank rows within partitions using ROW_NUMBER, RANK, DENSE_RANK, and NTILE. Learn how each handles ties and how to solve top-N and bucketing problems.</description></item><item><title>Lesson 5 - Offset Functions: LAG, LEAD, and FIRST_VALUE</title><link>/courses/sql/window-functions/lesson-5-offset-functions-lag-lead-and-first_value/</link><pubDate>Fri, 14 Nov 2025 09:00:00 +0200</pubDate><guid>/courses/sql/window-functions/lesson-5-offset-functions-lag-lead-and-first_value/</guid><description>Use LAG and LEAD to compare rows to their neighbors, and FIRST_VALUE, LAST_VALUE, and NTH_VALUE to pull fixed positions from a window. Build period-over-period metrics.</description></item><item><title>Lesson 6 - Distribution and Percentile Functions</title><link>/courses/sql/window-functions/lesson-6-distribution-and-percentile-functions/</link><pubDate>Fri, 14 Nov 2025 09:00:00 +0200</pubDate><guid>/courses/sql/window-functions/lesson-6-distribution-and-percentile-functions/</guid><description>Measure where a value falls with CUME_DIST and PERCENT_RANK, compute percentiles with PERCENTILE_CONT and PERCENTILE_DISC, and tidy queries with the WINDOW clause.</description></item><item><title>Lesson 7 - Guided Project: Sales Analytics for Northwind Traders</title><link>/courses/sql/window-functions/lesson-7-guided-project-sales-analytics-for-northwind-traders/</link><pubDate>Fri, 14 Nov 2025 09:00:00 +0200</pubDate><guid>/courses/sql/window-functions/lesson-7-guided-project-sales-analytics-for-northwind-traders/</guid><description>Act as a data analyst for Northwind Traders. Rank employees, build running totals, track month-over-month growth, find high-value customers, and surface top products.</description></item></channel></rss>