Introduction to SQL Window Functions

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

Understand how SQL window functions work and when to use them

Understand how the ORDER BY and PARTITION BY clauses work with the OVER() clause

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

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

Welcome to this project-based course Introduction to SQL Window Functions. This is a hands-on project that introduces SQL users to the world of window functions. 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(), LEAD(), LAG(), and FIRST_VALUE() to manipulate data in the project-db database. These window functions will be used together with the OVER() clause to query this database.

Skills you will develop

  • Data Manipulation
  • Join (Sql)
  • Select (Sql)
  • Postgresql
  • Window 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. ROW_NUMBER() - Part One

  3. ROW_NUMBER() - Part Two



  6. Fetching: LEAD() & LAG()

  7. FIRST_VALUE() - Part One

  8. FIRST_VALUE() - Part Two

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.