How do you find the second-highest salary?

Find the second-highest salary among a company's employees. Show several ways to do it. What would each query return if two employees share the highest salary? What happens if there is no second-highest salary?

ExplainDuplicates and top NJuniorAnalystData EngineerBackendQA