Infosys interview question

Database questions