Cognizant interview question

Database related queries