T
Tony in Michigan
I need some design help.
I have two tables which store record sets with 48 fields and 1 to hundreds
of lines.
T1 is my "main" table or record table
T2 is my "transfer" table or a temp file
there are two fields that I believe are significant here [serial num] and
[line num]
Serial num is unique to each record set and it caries the version of the
record set.
abc123_nn, where abc123 is the unique alpha-numeric with hyphens s/n and _nn
is the version number.
line num is a sequential count of the records in the set 1,2,3,etc. This
could potentially increase or decrease with a reversion.
Now, I would like to figure out how to do one or both of two queries.
a, a query or queries that will append the new unique record sets from T2 to
T1 and overwrite any existing record sets that have been reversioned.
or
b, a make table query that will extract the record sets by "MAX" version,
making a clean T1_nn+1
I tried a couple of different ways, but ended up either not working at all
or getting lost in the steps. I'm thinking that this should be relatively
simple, and just a matter of properly parsing the serial num field, to get
the version and doing some sort of compare to extract only the "MAX" version.
I have two tables which store record sets with 48 fields and 1 to hundreds
of lines.
T1 is my "main" table or record table
T2 is my "transfer" table or a temp file
there are two fields that I believe are significant here [serial num] and
[line num]
Serial num is unique to each record set and it caries the version of the
record set.
abc123_nn, where abc123 is the unique alpha-numeric with hyphens s/n and _nn
is the version number.
line num is a sequential count of the records in the set 1,2,3,etc. This
could potentially increase or decrease with a reversion.
Now, I would like to figure out how to do one or both of two queries.
a, a query or queries that will append the new unique record sets from T2 to
T1 and overwrite any existing record sets that have been reversioned.
or
b, a make table query that will extract the record sets by "MAX" version,
making a clean T1_nn+1
I tried a couple of different ways, but ended up either not working at all
or getting lost in the steps. I'm thinking that this should be relatively
simple, and just a matter of properly parsing the serial num field, to get
the version and doing some sort of compare to extract only the "MAX" version.