PostgreSQL Tutorial: FIRST_VALUE Function
Summary: In this tutorial, you will learn how to use the PostgreSQL FIRST_VALUE()
function to return the first value in a sorted partition of a result set.
Summary: In this tutorial, you will learn how to use the PostgreSQL FIRST_VALUE()
function to return the first value in a sorted partition of a result set.
Summary: The PostgreSQL FLOOR()
function returns a number rounded down to the next whole number.
Summary: This tutorial shows you how to develop a user-defined function that generates a random number between two numbers.
Summary: In this tutorial, you will learn how to use the PostgreSQL LAG()
function to access a row which comes before the current row at a specific physical offset.
Summary: In this tutorial, you will learn how to get the last value in an ordered partition of a result set by using the PostgreSQL LAST_VALUE()
function.
Summary: In this tutorial, you will learn how to use the PostgreSQL LEAD()
function to access a row that follows the current row, at a specific physical offset.
Summary: The PostgreSQL MOD()
function performs the modulo operation that returns the remainder after the division of the first argument by the second one.
Summary: In this tutorial, you will learn how to use the PostgreSQL NTH_VALUE()
function to get a value from the nth row in a result set.
Summary: In this tutorial, you will learn how to use the PostgreSQL NTILE()
function to divide ordered rows in the partition into a specified number of ranked buckets.
Summary: In this tutorial, you will learn how to use the PostgreSQL PERCENT_RANK()
function to calculate the relative rank of a value within a set of values.
Copyright (c) 2017 - 2025, Redrock Data Services, Inc. All rights reserved.