Delete the emps whose salaries are lowest sals of their own
dept.
Answer Posted / divya chaudhry
delete from emp where (depno,nvl2(sal,sal,0)) in ( select
depno,min(nvl2(sal,sal,0)) from emp group by depno )
| Is This Answer Correct ? | 0 Yes | 3 No |
Post New Answer View All Answers
What is sql indexing?
What are database links used for?
what is an index? : Sql dba
How does one load ebcdic data? : aql loader
how many triggers are allowed in mysql table? : Sql dba
What is group by in sql?
What is query optimization in sql?
How do you know if a relationship is 2nf?
how can I make a script that can be bi-language (supports english, german)? : Sql dba
How many developers work on postgresql?
Can a procedure in a package be overloaded?
what is the use of double ampersand (&&) in sql queries?
What is the best partition size for windows 10?
What is rownum?
What is the purpose of using pl/sql?