Recro's technical assessment pipeline needs to identify the third highest distinct integer score across submitted assessments. Write a PostgreSQL query that validates submitted scores against registered candidates and reports how many candidates achieved that score.
Requirements
- Rank non-null scores from highest to lowest using distinct-score semantics.
- Return the third highest distinct score, not the third row after sorting.
- Count candidates who achieved that score, including ties.
- Exclude assessment rows that do not match a registered candidate.