Your question is Count Analysis Tools by Usage. Start with the requirements and the one table on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
You are given a table that tracks which analysis tools candidates say they use in their day-to-day work, including tools common in Swiss Re environments such as Excel and Power BI. Write a PostgreSQL query that returns each tool_name and the number of candidates who listed it, but only for rows where proficiency_level is 'Advanced'. Sort the result by the candidate count in descending order, and then by tool_name alphabetically.
| Column | Type | Description |
|---|---|---|
| candidate_id | INT | Candidate identifier |
| candidate_name | VARCHAR(100) | Candidate name |
| tool_name | VARCHAR(100) | Analysis tool named by the candidate |
| proficiency_level | VARCHAR(20) | Self-reported proficiency level |
| years_used | INT | Number of years the candidate has used the tool |