Hudson Data interview question

Coding in SQL.