Understanding SQL: Getting Started with Window Functions

Get more from your aggregations by using SQL window functions

Rob Taylor, PhD
Towards Data Science
15 min readSep 17, 2023

--

Photo by Components AI on Unsplash

Introduction

When it comes to aggregating data in SQL, window functions provide greater flexibility than aggregations used in conjunction with GROUP BY clauses. While both approaches indeed perform similar functions, window functions…

--

--

Former academic, now data professional and writer. Writing about statistics, data science, and analytics. Machine learning enthusiast and avid football fan.