How to display employee records who gets more salary than the average salary in the department?
Answer Posted / Kavita Saini
To display employee records who get more salary than the average salary in a department, you can use SQL subqueries and analytic functions. Here's an example using Oracle SQL:nn```sqlnSELECT * FROM employeesnWHERE salary > (SELECT AVG(salary) FROM employees WHERE department_id = employees.department_id);n```
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How to use values from other tables in update statements using oracle?
How to put more than 1000 values into an oracle in clause?
Design database draw er diagram for a certain scenario ?
How to write a left outer join with the where clause in oracle?
How to start an oracle instance?
How to select all columns of all rows from a table in oracle?
What is oracle latest version?
Please send me Informatica 8.1 certification dumps, my mail id mona85gupta@gmail.com