Delete the emps whose salaries are lowest sals of their own
dept.

Answer Posted / roopesh kumar

delete from emp where (deptno,nvl(comm,0)) in (select
deptno,min(nvl(comm,0)) from emp
group by deptno)

Is This Answer Correct ?    0 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does <> sql mean?

712


What is the difference between sum and count in sql?

718


What steps server process has to take to execute an update statement?

709


Does inner join return duplicate rows?

701


What are different types of triggers?

738






How to order siblings in oracle hierarchy queries?

771


What is the difference between inner join and left join?

735


how can we encrypt and decrypt a data present in a mysql table using mysql? : Sql dba

840


What is sql partition?

752


What are the three forms of normalization?

757


how to load data files into tables with 'mysqlimport'? : Sql dba

745


what is sql server agent? : Sql dba

772


What is the purpose of the sql select top clause?

736


What is function and procedure?

758


Can a foreign key be null?

809