|
Ok, say you have two tables TABLE1: pol_num build_value 1 10 3 15 5 11 TABLE2: pol_num auto_value 2 7 4 1 5 21 How would you get a result set that would include all polnum in both tables, but with both values if the policies match? The closest I can get is using a left join. SELECT T1.polnum, T1.build_value, T2.auto_value FROM T1 LEFT JOIN T2 ON T1.polnum = T2.polnum but that won't give me pol_num 2 and 4 in table2. Any ideas? Adam Lang Systems Engineer Rutgers Casualty Insurance Company http://www.rutgersinsurance.com
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.