G
Guest
hi,
cleaning up a somewhat messy duplication; have an issue where table1 has
records with values and table2 does also. I need to subtract the values of
table 2 from table 1
can either create a new table 3 or update table 1...have lots of leeway in
method...just too many records to do manually....
but while there is correct alignment between IDs....table 2 doesn't have a
value for all records...so it looks like this:
Table 1 Table2
ID Qty ID Qty
A 5 A 1
B 3 C 1
C 4
and need to result:
ID Qty
A 4
B 3
C 3
thought it would be no problem but have found myself going around in circles
for awhile so need someone to kick me and point out what I'm missing....have
kind of pinged around with update query, sql statement, and such but kind of
not clicking for me....would welcome comments....
cleaning up a somewhat messy duplication; have an issue where table1 has
records with values and table2 does also. I need to subtract the values of
table 2 from table 1
can either create a new table 3 or update table 1...have lots of leeway in
method...just too many records to do manually....
but while there is correct alignment between IDs....table 2 doesn't have a
value for all records...so it looks like this:
Table 1 Table2
ID Qty ID Qty
A 5 A 1
B 3 C 1
C 4
and need to result:
ID Qty
A 4
B 3
C 3
thought it would be no problem but have found myself going around in circles
for awhile so need someone to kick me and point out what I'm missing....have
kind of pinged around with update query, sql statement, and such but kind of
not clicking for me....would welcome comments....