Concept Flow - FIRST_VALUE and LAST_VALUE
Start with ordered data
Apply window function
FIRST_VALUE: pick first row value in window
LAST_VALUE: pick last row value in window
Return result for each row
These functions look at a set of rows ordered in a window and return the first or last value from that set for each row.