I have an issue with the analytics function FirstValue:(Syntax:
FIRST_VALUE(TAble1.Column2 IGNORE NULLS) OVER (PARTITION BY Column1 ORDER BY Column3 DESC)
Example:
Column1 Column2 Column3
1 A 01/01/2012
1 (NULL) 02/01/2012
1 (NULL) 03/01/2012
I want to retrieve one line using the analytics function describe above.
Column1 Column2 Column3
1 A 01/01/2012
The issue is that Oracle retrieve 2 lines, one with Null and one other with the value'A' in the column2
Could you please help me to solve this issue?
Best Regards