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
Explain the structure of pl/sql in brief.
What are field types?
how many columns can be used for creating index? : Sql dba
What is denormalization in a database?
How do you concatenate in sql?
What is a boolean in sql?
Can a table have no primary key?
what is a foreign key ? : Sql dba
What are the types of join and explain each?
How do I run a sql query in pgadmin 4?
Is sql sequential or random?
What is a sql schema used for?
Can 2 queries be executed simultaneously in a distributed database system?
Explain the uses of database trigger.
Explain the working of primary key?