adspace


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

Can we use distinct and group by together?

1146


What is your daily office routine?

2351


Is primary key always clustered index?

1101


what is bcp? When does it used? : Sql dba

1065


what is dbms? : Sql dba

1070


Is primary key clustered index?

1026


How do I remove duplicates in two columns?

1202


what are aggregate and scalar functions? : Sql dba

1142


Does group by remove duplicates?

1120


Can delete statement be rollbacked?

1065


What is the current version of sql?

1106


define sql insert statement ? : Sql dba

1108


Can we rollback truncate?

1083


If a cursor is open, how can we find in a pl/sql block?

1252


what is schema? : Sql dba

1163