Dataford
Interview QuestionsInterview GuidesExperiencesMock InterviewsPricing
Get started

Count Analysis Tools by Usage

EasySQL · PostgreSQL00:00
Practice interviewer
In session
5 left
00:00

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 need to log in / sign up to run or submit.

Problem

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.

Schema

candidate_tool_proficiency
ColumnTypeDescription
candidate_idINTCandidate identifier
candidate_nameVARCHAR(100)Candidate name
tool_nameVARCHAR(100)Analysis tool named by the candidate
proficiency_levelVARCHAR(20)Self-reported proficiency level
years_usedINTNumber of years the candidate has used the tool
Tablescandidate_tool_proficiency
Your solutionPostgreSQL
You need to log in / sign up to run or submit.
Run a query to see results