analytical functions in Oracle.

Published on by LakshmiSaahul,Dhana Royal

FIRST_VALUE and LAST_VALUE analytical functions


by sqlandplsql

Both FIRST_VALUE and LAST_VALUE are analytical functions in Oracle.

FIRST_VALUE

It is used to find the first value from a ordered set of values.

Syntax :-

1) FIRST_VALUE(column) over(partition by column order by column )

2) FIRST_VALUE(column) ignore nulls over(partition by column order by column )

— Above will ignore null column’s

3) FIRST_VALUE(column) over(partition by column order by column ) ROWS UNBOUNDED PRECEDING

Advertising
To be informed of the latest articles, subscribe:
Comment on this post