EXL Service interview question

Technical questions on SQL and puzzles