Write queries that use window functions

Advanced
Data Analyst
Data Engineer
Data Scientist
Database Administrator
Developer
Solution Architect
Student
Azure SQL Database
Azure SQL Managed Instance
SQL Server on Azure Virtual Machines
Azure SQL Server on Virtual Machines
SQL Server

Learn how to use window functions in Transact-SQL.

Learning objectives

After completing this module, you’ll be able to:

  • Describe window functions.

  • Use the OVER clause.

  • Use RANK, AGGREGATE, and OFFSET functions.

Prerequisites

Before starting this module, you should have experience of using Transact-SQL queries to retrieve and filter data from a table in a database.