Documentation Home
MySQL 9.4 Reference Manual
Related Documentation Download this Manual
PDF (US Ltr) - 41.2Mb
PDF (A4) - 41.3Mb
Man Pages (TGZ) - 262.8Kb
Man Pages (Zip) - 368.8Kb
Info (Gzip) - 4.1Mb
Info (Zip) - 4.1Mb


14.20 Window Functions

MySQL supports window functions that, for each row from a query, perform a calculation using rows related to that row. The following sections discuss how to use window functions, including descriptions of theOVER andWINDOW clauses. The first section provides descriptions of the nonaggregate window functions. For descriptions of the aggregate window functions, seeSection 14.19.1, “Aggregate Function Descriptions”.

For information about optimization and window functions, seeSection 10.2.1.21, “Window Function Optimization”.