Pergunta de entrevista da empresa Tata Consultancy Services

Second max value in sql