Pregunta de entrevista de Tata Consultancy Services

SQL query for joining tables for getting the top 'n' rows