Infosys interview question

Database Queries