DrawCode Practice Problem

Second Highest Salary

Write SQL to find the second highest distinct salary from an `Employee` table `(id, salary)`. Return NULL if it does not exist.


Interactive Visualizer Workspace

Explore step-by-step interactive animations, memory state tracking, and live multi-language execution in DrawCode.

Launch Interactive Visualizer