SQL Window Functions for Analytics

Offered By
Coursera Project Network
In this Guided Project, you will:

Understand how SQL window functions work and how to use them

Manipulate data in tables using SQL SELECT statements together with window functions

Use different SQL windows to get database insights

Clock2 hours
AdvancedAdvanced
CloudNo download needed
VideoSplit-screen video
Comment DotsEnglish
LaptopDesktop only

Welcome to this project-based course SQL Window Functions for Analytics. This is a hands-on project that will help SQL users use window functions extensively for database insights. In this project, you will learn how to explore and query the project-db database extensively. We will start this hands-on project by retrieving the data in the table in the database. By the end of this 2-hour-and-a-half-long project, you will be able to use different window functions to retrieve the desired result from a database. In this project, you will learn how to use SQL window functions like ROW_NUMBER(), RANK(), DENSE_RANK(), NTILE(), and LAST_VALUE() to manipulate data in the project-db database. Also, we will consider how to use aggregate window functions. These window functions will be used together with the OVER() clause to query this database. By extension, we will use grouping functions like GROUPING SETS(), ROLLUP(), and CUBE() to retrieve sublevel and grand totals.

Skills you will develop

Data ManipulationCTESubqueriesPostgresqlWindow Function

Learn step-by-step

In a video that plays in a split-screen with your work area, your instructor will walk you through these steps:

  1. Getting Started

  2. Window Functions - Refresher

  3. Ranking

  4. Paging: NTILE()

  5. Aggregate Window Functions - Part One

  6. Aggregate Window Functions - Part Two

  7. Window Frames - Part One

  8. Window Frames - Part Two

  9. GROUPING SETS(), ROLLUP(), & CUBE()

How Guided Projects work

Your workspace is a cloud desktop right in your browser, no download required

In a split-screen video, your instructor guides you step-by-step

Frequently asked questions

Frequently Asked Questions

More questions? Visit the Learner Help Center.