Infosys interview question

Queries for database in SQL