1.

Consider the following relation:Works (emp_name, company_name, salary)Here, emp_name is primary key.Consider the following SQL query:Select emp_nameFrom Works Twhere salary>(select avg (salary)from Works Swhere T.company_name=S. Company_name)The above query is for following:

A. Find the highest paid employee who earns more than the average salary of all employees of his company
B. Find the highest paid employee who earns more than the average salary of all the employees of all the companiesFind the highest paid employee who earns more than the average salary of all the employees of all the companiesFind the highest paid employee who earns more than the average salary of all the employees of all the companies
C. Find all employees who earn more than the average salary of all employees of all the companies
D. Find all employees who earn more than the average salary of all employees of their company
Answer» E.


Discussion

No Comment Found