About the “Engineering Merit Compensation Audit” SQL Problem
Business Scenario
The HR compensation committee is reviewing salary equity for engineering staff. They need a list of software engineers who received an outstanding performance rating (4.5 or above) but have an annual base salary under $160,000 to prioritize equity adjustments.
Expected Output & Criteria
High-performing engineers earning under $160k, sorted by rating descending and salary ascending.
Database Table Schema (PostgreSQL DDL)
PostgreSQL 16 WASMThis challenge executes directly against the following relational schema in your browser:
CREATE TABLE staff_roster (
emp_id INT PRIMARY KEY,
full_name VARCHAR(100) NOT NULL,
department VARCHAR(50) NOT NULL,
job_title VARCHAR(60) NOT NULL,
perf_rating NUMERIC(3, 1) NOT NULL,
base_salary NUMERIC(10, 2) NOT NULL
);Target SQL Clauses & Operators
Want more Fundamentals practice?
Explore the full syllabus of 12 exercises, syntax guides, and interview pitfalls.