SQL Server - First Value and Last Value window function

Pubblicato il: 23 maggio 2021
sul canale di: PracticalIT
1,081
11

The FIRST_VALUE() function is a window function that returns the first value from specified column in an ordered partition of a result set.

The LAST_VALUE() function is a window function that returns the first value from specified column in an ordered partition of a result set.

Syntax:-

FIRST_VALUE ( scalar_expression )
OVER (
[PARTITION BY partition_expression, ... ]
ORDER BY sort_expression [ASC | DESC], ...
)


LAST_VALUE ( scalar_expression )
OVER (
[PARTITION BY partition_expression, ... ]
ORDER BY sort_expression [ASC | DESC], ...
)

#practialit #sqlservertutorial #sql #easysql


In questa pagina del sito puoi guardare il video online SQL Server - First Value and Last Value window function della durata di ore minuti seconda in buona qualità , che l'utente ha caricato PracticalIT 23 maggio 2021, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 1,081 volte e gli è piaciuto 11 spettatori. Buona visione!