Hudson Data Interview Question

Coding in SQL.