There are three tables :
E : EID,ENAME
D : DID,DNAME
empdept : eid, did
select the employees who doesn't belong to any dep
Answers were Sorted based on User's Feedback
Answer / neha_gupta
SELECT E.ENAME FROM EMPLOYEE E WHERE E.EID IN (SELECT EID
FROM EMPDEPT WHERE DID IS NULL)
Is This Answer Correct ? | 5 Yes | 1 No |
Answer / sudipta santra
select e.ename from e where e.eid in (
(select e.eid from e
minus
select eid from empdept,d where d.did=empdept.did))
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / nathan
SELECT ename
FROM emp
WHERE NOT EXISTS (SELECT NULL
FROM dept
WHERE dept.deptno = emp.deptno);
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / ajit
select e.eid, e.ename
from E e, D d
where e.eid = d.did(+)
and d.did is null;
Is This Answer Correct ? | 0 Yes | 0 No |
What is a deadlock ? Explain .
how to handle exceptions in post production
What are the predefined tablespaces in a database?
How to recover a dropped table in oracle?
Explain the use of owner option in exp command.
What is dual table oracle?
how the Oracle Prepares the Execution Plan and how it chooses the Optimal one?
What is a dead lock in oracle?
What is recovery manager(rman) backup in Oracle?
How to create a stored program unit?
What is a oracle database?
What is oracle analytical function?