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