Left Outer Join More than One column?
Posted: Wed Mar 12, 2014 1:19 am
Hi All,
Please let me know whether this left outer join is correct? If correct will it effect the performance because I am using join with more than one columns.
both tables are in database so can I use the SQL join or data stage join. left table contain millions of records.
SELECT a.contractno, b.prism id
FROM Contract
LEFT OUTER JOIN prism
ON a.prism_cont_num = b.prism_cont_num
AND table1.product_cd = b.product_cd
and a.tie_breaker=b.tie_breaker
and a.contract_type=b.contract_type
Please let me know whether this left outer join is correct? If correct will it effect the performance because I am using join with more than one columns.
both tables are in database so can I use the SQL join or data stage join. left table contain millions of records.
SELECT a.contractno, b.prism id
FROM Contract
LEFT OUTER JOIN prism
ON a.prism_cont_num = b.prism_cont_num
AND table1.product_cd = b.product_cd
and a.tie_breaker=b.tie_breaker
and a.contract_type=b.contract_type