You are given a table named employee that stores one row per employee with their salary. Some employees may share the same salary (ties), and salaries should be considered by their distinct values.
Write a single query that returns the 3rd-highest DISTINCT salary. Rank salaries by their distinct values from highest to lowest, so duplicate salaries count only once. If there are fewer than 3 distinct salaries in the table, your query must return NULL instead of an empty result.
Return a single column named nth_salary containing exactly one row: either the 3rd-highest distinct salary or NULL.