Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Consider the following SQL statement: SELECT EmployeeName FROM Employees WHERE Salary > ( SELECT AVG ( Salary ) FROM Employees ) ; What does the
Consider the following SQL statement:
SELECT EmployeeName
FROM Employees
WHERE Salary SELECT AVGSalary FROM Employees;
What does the subquery in this SQL statement do
Group of answer choices
It calculates the total salary of all employees and returns this value to the main query.
It updates the salaries of employees to the average salary of all employees.
It selects the average salary of all employees and returns this single value to the outer query.
It lists the names of all employees whose salaries are above the average salary.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started