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

how to retrieve data from different tables ,place this data in different excel worksheets.

1 Answers   Gap Inc,


If server is in US and client is in india there is timezone is diffrence, How can we display date in indian time when data is displayed from US server timezone?

1 Answers  


what is the dual table in oracle?

0 Answers  


Is it possible to set second Primary Key Constraint in a table in Oracle Database ?

0 Answers   MCN Solutions,


What is a SNAPSHOT ?

1 Answers  






A USER HAVING CREATE SESSION PREVILAGE CAN ALTER PASSWORD/CHANGE PASSWORD?

2 Answers  


What is Network Database link ?

1 Answers  


What is the exact use of Collections?

0 Answers  


In Oracle Clinical 4.5.0, can the VIEW_TEMPLATE_ID column in DATA_EXTRACT_VIEWS table contain NULL value?

0 Answers  


How to add a new column to an existing table in oracle?

0 Answers  


waht is referencial integrity?

2 Answers   Semantic Space,


Why does oracle 9i treat an empty string as null?

0 Answers  


Categories
  • Oracle General Interview Questions Oracle General (1789)
  • 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)