How To Select Deptno From Dept Were There Are No Employees ??? [message #121464] |
Mon, 30 May 2005 00:42  |
 |
rajavu1
Messages: 1574 Registered: May 2005 Location: Bangalore , India
|
Senior Member |

|
|
suppose in our emp-dept table ,
We have a deptno in Dept table where there is no employees in Emp table.
I would like to select that deptno.
SQL> select deptno from dept where deptno not in(select distinct deptno from emp);
will work ofcourse ....
What are the other alternatives ?????
any respond is appreciated ....
Rajuvan.
[Updated on: Mon, 30 May 2005 00:49] Report message to a moderator
|
|
|
|
|
|
|
|
|