Tredence interview question

SQL queries, Puzzles, case studies