G
Guest
Hi, I'm having trouble building a query which will merge two tables together.
Both tables contain a identicle field which contains common numerical data.
How ever the one table contains null fields on lines that are immediaely
below the matching fieeld value. There may be several lines below the
matching field, before the next value common to both tables occurs.
eg.
Table 1 Table 2
Field 1 Field 1 Field 2 Field 3
xxxx aaaa
aaaa zzzz yyyy
xxxx zzzz yyyy
Expected output
Table 3
Field 1 Field2 Field3
xxxx
aaaa zzzz yyyy
zzzz yyyy
So far my queries can not account for the null values in table 2. I've even
tried adding data to try and group data in table 2 so that fields 2 & 3 are
each associated to field1. Unfortunately with hundreds of entries, this has
proven too time consuming.
Any ideas would be much appreciated.
Duncan
Both tables contain a identicle field which contains common numerical data.
How ever the one table contains null fields on lines that are immediaely
below the matching fieeld value. There may be several lines below the
matching field, before the next value common to both tables occurs.
eg.
Table 1 Table 2
Field 1 Field 1 Field 2 Field 3
xxxx aaaa
aaaa zzzz yyyy
xxxx zzzz yyyy
Expected output
Table 3
Field 1 Field2 Field3
xxxx
aaaa zzzz yyyy
zzzz yyyy
So far my queries can not account for the null values in table 2. I've even
tried adding data to try and group data in table 2 so that fields 2 & 3 are
each associated to field1. Unfortunately with hundreds of entries, this has
proven too time consuming.
Any ideas would be much appreciated.
Duncan