Documentation Index
Fetch the complete documentation index at: https://docs.oxla.com/llms.txt
Use this file to discover all available pages before exploring further.
Overview
TheMIN() window function is used to compute the minimum value of an expression across a set of rows defined by a window specification.
Syntax
The syntax for this function is as follows:Parameters
ALL: retains all duplicate values from the expression
Example
For the needs of this section we will use a simplified version of thefilm table from the Pagila database, containing only the title, length and rating columns. The complete schema for the film table can be found on the
Pagila database website.
MIN() to find the minimum length of films for each rating category and also calculates a running minimum length of films ordered by their length.