|
|
Question : inner join and an outer join in one query
|
|
Folks
i have the following
table 1 table 2 table 3
between table 2 and 3 there must be an inner join
table 1 must have a left outer join to table 2
how do i get this to work fine without duplicates
|
Answer : inner join and an outer join in one query
|
|
SELECT t1.location,t3.wonum,t3.description FROM assignment t2 inner join workorder t3 ON t2.wonum= t3.wonum AND t2.siteid=t3.siteid RIGHT OUTER JOIN locations t1 on t1.location = t2.location AND t1.siteid=t2.siteid
|
|
|
|