Accenture interview question

Database related queries