Pregunta de entrevista de Tata Consultancy Services

SQL query about retrieval of data