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


Please Help Members By Posting Answers For Below Questions

What is not null in sql?

781


What do you understand by case manipulation functions?

732


What is partition in sql query?

719


How do I use google cloud in sql?

732


what are the types of join and explain each? : Sql dba

769






Can we join more than 2 tables in sql?

678


Which one is better sql or oracle?

701


What are the types of keys?

671


Explain the types of joins in sql?

737


What is full join?

699


Can unique keys be null?

663


What is the difference between having and a where in sql?

799


what is column? : Sql dba

744


Can we use pl sql in sql server?

739


Explain what is a database?

811