adspace


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 are the advantages of sql ? : Sql dba

1149


Is primary key always clustered index?

1101


Is inner join faster than left join?

1285


what is collation? : Sql dba

1235


Can delete statement be rollbacked?

1061


What is the current version of postgresql?

1185


What is the current version of sql?

1100


what is sql server agent? : Sql dba

1187


What is the best sql course?

1058


how to start mysql server? : Sql dba

1275


what are all the common sql function? : Sql dba

1137


Do we need to rebuild index after truncate?

1149


how to use regular expression in pattern match conditions? : Sql dba

1119


what is dbms? : Sql dba

1067


What is your daily office routine?

2351