Hexaware Technologies interview question

Sql queries