Meta Interview Question

Two coding questions on SQL