There are three tables :
E : EID,ENAME
D : DID,DNAME
empdept : eid, did


select the employees who doesn't belong to any dep

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is an oracle table?

639


How to get maxsal , minsal, ename department wise in single query

1134


what is the need of indexing topic in oracle? where do we use in a Java project? any other option other than using this to get the same result where we use indexing ?

2126


How many categories of data types?

655


A table t is there.If you perform insert ,update and delete then the trigger will fire.What is the minimum no of trigger required for a table.

4573






What is the difference between view and materialized view in Oracle?

711


How to define a variable of a specific record type?

696


what is meant by magic query

1858


Database crashes. Corruption is found scattered among the file system neither of your doing nor of Oracles. What database recovery options are available? Database is in archive log mode.

1629


Can we use oracle pl/sql block in core java? if so how? pls get back to me .....

2603


What is parameterized cursor in oracle?

686


What are the uses of synonyms?

692


In the oracle version 9.3.0.5.0, what does each number shows?

906


What is a subquery in oracle?

663


How do we display rows from the table without duplicates?

628