Craftner Interview Question

SQL queries and performance tuning