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 the use of triggers in Java program? I mean where do we use triggers in Java programming?

1685


In what script is snap$ created? In what script is the scott/tiger schema created?

2235


How to get a list of all user accounts in the database?

601


How many objectname will be created for a single table drop function? Why 'flashback' query giving error "ORA-38312: original name is used by an existing object" while getting the table?

1797


How to display row numbers with the records?

578






How can I get column names from a table in oracle?

526


Why packages are used in oracle?

532


What is pragma autonomous transaction in oracle?

511


How remove data files before opening a database?

552


What are set operators?

642


What is a relational database management system?

660


How can I see all tables in oracle?

535


What happens internally when the user types userID/password@string in SQL PLUS Thanks-Bhaskar

3817


Does facebook use oracle?

561


Explain constraining triggers.

589