Question from the SQL - Fundamentals test

Write a SQL query to retrieve employees with a salary higher than the average salary.

Easy

Given the following 'employees' table:

| employee_id | name | salary | department |
|-------------|---------|--------|------------|
| 1 | Alice | 3000 | HR |
| 2 | Bob | 3500 | IT |
| 3 | Charlie | 4000 | IT |

Which SQL query retrieves employees with a salary higher than the average salary?

Author: Vincent CotroStatus: PublishedQuestion passed 1024 times
Edit
4
Community EvaluationsNo one has reviewed this question yet, be the first!