This visual execution shows how a SQL query uses CASE with aggregate functions. The query groups employees by department_id and calculates the average salary per group. Then, the CASE statement checks if the average salary is greater than 5000. If true, it outputs 'High'; otherwise, 'Low'. The execution table traces each department's average salary, the CASE condition evaluation, and the final output row. The variable tracker shows how department_id, average salary, and CASE results change step-by-step. Key moments clarify why CASE uses aggregate results and what happens at boundary values. The quiz tests understanding of CASE results and condition changes. This helps beginners see how CASE works with aggregates in SQL.