Concept Flow - LEAD function for next row access
Start with ordered rows
For each row
Look at next row in order
Return value from next row
If no next row, return NULL or default
Output current row + next row value
The LEAD function looks at the next row in a defined order and returns a value from that row for the current row, or NULL if there is no next row.