Hello,
Ihope to find some help in here, i have the following diagram
[IMG]http://img143.imageshack.us/img143/6704/13503390.th.jpg[/IMG]
and i want a query which return Emp_ID, Pro_ID
note;
i can get these values but by 2 queries as the following;
select Pro_ID from Projects where Dep_ID in
(select Dep_ID from Departments where name = 'test')
select Emp_ID from Employees where Dep_ID in
(select Dep_ID from Departments where name = 'test')
the goal of having the result through one query is that i want to insert the value into another table
insert into testTable (query)
Hope to see reply ASAP