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



There are three tables : E : EID,ENAME D : DID,DNAME empdept : eid, did select the employees..

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

There are three tables : E : EID,ENAME D : DID,DNAME empdept : eid, did select the employees..

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

There are three tables : E : EID,ENAME D : DID,DNAME empdept : eid, did select the employees..

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

There are three tables : E : EID,ENAME D : DID,DNAME empdept : eid, did select the employees..

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

Post New Answer

More Oracle General Interview Questions

What is a deadlock ? Explain .

1 Answers  


how to handle exceptions in post production

0 Answers  


What are the predefined tablespaces in a database?

0 Answers  


How to recover a dropped table in oracle?

0 Answers  


Explain the use of owner option in exp command.

0 Answers  






What is dual table oracle?

0 Answers  


how the Oracle Prepares the Execution Plan and how it chooses the Optimal one?

0 Answers   Oracle,


What is a dead lock in oracle?

0 Answers  


What is recovery manager(rman) backup in Oracle?

0 Answers   MCN Solutions,


How to create a stored program unit?

0 Answers  


What is a oracle database?

0 Answers  


What is oracle analytical function?

0 Answers  


Categories
  • Oracle General Interview Questions Oracle General (1808)
  • Oracle DBA (Database Administration) Interview Questions Oracle DBA (Database Administration) (261)
  • Oracle Call Interface (OCI) Interview Questions Oracle Call Interface (OCI) (10)
  • Oracle Architecture Interview Questions Oracle Architecture (90)
  • Oracle Security Interview Questions Oracle Security (38)
  • Oracle Forms Reports Interview Questions Oracle Forms Reports (510)
  • Oracle Data Integrator (ODI) Interview Questions Oracle Data Integrator (ODI) (120)
  • Oracle ETL Interview Questions Oracle ETL (15)
  • Oracle RAC Interview Questions Oracle RAC (93)
  • Oracle D2K Interview Questions Oracle D2K (72)
  • Oracle AllOther Interview Questions Oracle AllOther (241)