adspace


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

Answer Posted / raji_4u

DELETE FROM EMP E1
WHERE E1.SAL =
(SELECT MIN(SAL) FROM EMP E2
WHERE E1.DEPTNO = E2.DEPTNO
)

Is This Answer Correct ?    15 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we use distinct and group by together?

1145


what are the advantages of sql ? : Sql dba

1150


how to escape special characters in sql statements? : Sql dba

1124


Can delete statement be rollbacked?

1064


what is dbms? : Sql dba

1069


Hi am new to PLSQL & facing problems in writing code like in SP, Functions, so any one having some SP coding with in depth explanation please share with me my Email ID suvarnaatsuvarna@rediffmail.com Or taking tanning on this please do contact me

2099


What is the current version of sql?

1103


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

1065


define sql insert statement ? : Sql dba

1107


What is the current version of postgresql?

1187


Is primary key clustered index?

1025


What is your daily office routine?

2351


what are aggregate and scalar functions? : Sql dba

1141


what is collation? : Sql dba

1239


how to start mysql server? : Sql dba

1277