Accenture interview question

SQL queries