Interview Guides

You are given an employees table from a Coforge workforce dataset. Write a PostgreSQL query to return the second highest distinct salary from the table. If the highest salary appears multiple times, it should still count only once. If there is no second distinct salary, the query should return no rows.