Coding question · Basic Filter AggEasyAsked at Meta

Employees earning more than $150,000

Filter with WHERE + order results.

Back to all coding questions

The Brief

HR AnalyticsComp team#coding-interview

Return the name and salary of every employee earning more than $150,000. Columns: `name`, `salary`. Order by salary descending. Table: `ci_employees`.

Tables & columns available

ci_employeesdim6 columns
ColumnTypeKey
idINTPK
nameTEXT
department_idINTFK → ci_departments.id
manager_idINTFK → ci_employees.id
salaryINT
hire_dateDATE

Hints (2)

Each hint you reveal reduces the XP you can earn. Try the query first.

Hint 1

WHERE salary > 150000.

Hint 2

ORDER BY salary DESC.