DrawCode Practice Problem

Second Highest Distinct Salary · Hotel stays 75

Hotel stays dataset, variant 75. Return one column `second_highest_salary`; return NULL when no second distinct salary exists. Write one read-only SQLite SELECT query.


Interactive Visualizer Workspace

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

Launch Interactive Visualizer