This visual execution trace shows how FIRST_VALUE and LAST_VALUE window functions work in SQL. The query partitions employees by department and orders them by salary descending. FIRST_VALUE returns the highest salary in each department for every row. LAST_VALUE returns the lowest salary, but requires a frame clause to cover the entire partition; otherwise, it may return the current row's salary. The execution table walks through each row, showing how these values are computed and remain consistent across rows in the same partition. Key moments clarify why the frame clause is needed for LAST_VALUE and why FIRST_VALUE stays constant. The quiz tests understanding of these behaviors by referencing specific steps and values in the execution table. The snapshot summarizes the syntax and key rules for these window functions.