Progressive Techserve interview question

SQL queries