SQL problem solving for interviews