What is your process for debugging or optimizing complex SQL queries?
Use the provided interview data to demonstrate a reliable query for candidate interview metrics. The result should include only candidates with at least one completed interview that has a non-NULL evaluation score. Rows with a NULL average score are ignored.
Output
- One row per qualifying candidate with
candidate_id, candidate_name, completed_interviews, average_score, last_completed_date, and review_status
- Sort by completed interviews descending, average score descending, then candidate ID ascending