> I have 2 tables (tblSAPDetails & tblVendorDetails) they both have
> Vendor as the PK. I would like to run a query which would highligh the
[quoted text clipped - 11 lines]
>
> Should somehow return the difference between the 2 tables.
Try concatonating the 3 fields for TblSAPDetails in one query and
concatonating the fields for TblVendorDetails in another. If I'm
understanding you correctly, you could then include them in a third query
with an outer join on the concatonated fields and test for nulls.
Regards,
Keith.
www.keithwilby.com
Alan Webb - 08 Mar 2005 17:36 GMT
Keith,
Why not do a calculated join on the two columns, for example:
SELECT VENDOR_OLD.NAME AS OLD_VENDOR_NAME, VENDOR_NEW.NAME AS
NEW_VENDOR_NAME
FROM tblSAPDetails as VENDOR_OLD, tblVendorDetails AS VENDOR_NEW
WHERE VENDOR_OLD.ABC <> VENDOR_NEW.ABC
AND VENDOR_OLD.INDUSTRY <> VENDOR_NEW.INDUSTRY
This will give you anything that does not have a matching ABC and Industry.
>> I have 2 tables (tblSAPDetails & tblVendorDetails) they both have
>> Vendor as the PK. I would like to run a query which would highligh the
[quoted text clipped - 20 lines]
> Keith.
> www.keithwilby.com