Articles → SQL SERVER → First_Value Function In The SQL Server
First_Value Function In The SQL Server
Purpose
Example
SELECT
id,
[state],
[Difference],
FIRST_VALUE([Difference]) OVER (ORDER BY [Difference] ASC) AS [Lowest Difference]
FROM
population
Output
| Posted By - | Karan Gupta |
| |
| Posted On - | Sunday, April 23, 2023 |