1
我有兩個sql查詢。追加sql查詢結果
select EmployeeID,FName from [Mydatabase].[dbo].EMPLOYEE_TABLE where EmployeeID not in
(select ManagerID from [Mydatabase].[dbo].ORG_UNIT where OrgUnitID = '5')and OrgUnitID = '5'
這將返回兩行。 並且還有另一個查詢。
(select EmployeeID,FName from [Mydatabase].[dbo].EMPLOYEE_TABLE where EmployeeID in
(select ManagerID from [Mydatabase].[dbo].ORG_UNIT where ParentTeamID = '5'))
這將返回一行。
我想結合的結果,以最終得到三行..有沒有辦法做到這一點?
oops。 !我忘了..謝謝。 – scooby 2011-05-04 11:59:31