Pergunta de entrevista da empresa Tata Consultancy Services

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