Cognizant Interview Question

basic SQL queries.