Capgemini Interview Question

Some SQL Queries