Infosys interview question

SQL Queries