Hackathons
News
Internships
Forum
Winning Hacks
Loading...
Games are under development. Expect frequent updates and changes.
Back to all games
20 points on win
Medium
SQL Quest
Practice joins, aggregations, filters, and window functions on compact datasets.
SQL Quest
Choose the Correct Query
Goal: return average salary per department.
SELECT department, AVG(salary) FROM employees;
SELECT department, AVG(salary) AS avg_salary FROM employees GROUP BY department;
SELECT AVG(salary) FROM employees GROUP BY name;
SELECT department FROM employees WHERE AVG(salary) > 0;
Submit
Reset