A
Andrew
Hi,
I want to merge two tables (Tbl_1 & Tbl_2) into a new Table (Tbl_3) but it
is not quite as easy as that (for me anyway).
For both of the tables the field names are identical. Here is a sample of
the layout:
Year Period [Vendor No] [Vendor Name] Sales SOH SOO
There are 3 fields I need to compare - Year, Period and Vendor No. If the 3
fields are the same in both tables then use the entire record from Tbl_2.
Where the fields in either table are unique they need to be used.
This may be simpliefied by saying use ALL of tbl_2 and add anything unique
from Tbl_1.
I'd like to do this in SQL.
Thanks in advance
Andrew
250806.
I want to merge two tables (Tbl_1 & Tbl_2) into a new Table (Tbl_3) but it
is not quite as easy as that (for me anyway).
For both of the tables the field names are identical. Here is a sample of
the layout:
Year Period [Vendor No] [Vendor Name] Sales SOH SOO
There are 3 fields I need to compare - Year, Period and Vendor No. If the 3
fields are the same in both tables then use the entire record from Tbl_2.
Where the fields in either table are unique they need to be used.
This may be simpliefied by saying use ALL of tbl_2 and add anything unique
from Tbl_1.
I'd like to do this in SQL.
Thanks in advance
Andrew
250806.