Computer Science, asked by sneka253, 4 months ago

To display the names of employees who earns more than the average salary of all
employees.
SELECT last_name, first_name
FROM employee
WHERE salary > AVG(salary);
Which change should you make to achieve the desired results?
Select one:
O Change the function in the WHERE clause.
O Use a subquery in the WHERE clause to compare the average salary value.
O Move the function to the SELECT clause and add a GROUP BY clause and a HAVING clause.
O Move the function to the SELECT clause and add a GROUP BY clause.​

Answers

Answered by barani7953
13

Explanation:

Use a subquery in the WHERE clause to compare the average salary value.

please mark as best answer and thank me

Answered by jackmartinn037
2

Answer:

B. Use a subquery in the WHERE clause to compare the average salary value.

Explanation:

A subquery in a WHERE clause can be used to qualify a column against a set of rows.

Similar questions