Mphasis interview question

SQL queries