Accenture interview question

related to DBMS and SQL