G
Guest
Hi,
I'm trying to find the best way to reconcile records in a table which
contain values that (should) net out to zero, using the TRADEID. I would like
to:
A) have the query result showing any records that don't net out (I've ben
using the sum function but would like to see if there is a way to match both
the TRADEID and the TOTAL field to match record amount for record amount)
B) using a separate query, return all the records that have the same Total
without having the same TRADEID. - the table below would return only the
last 2 records.
I'm having a hard time trying to compare records within the same table. Is
there anyway to do this without having to create 2 tables from that one
table, and creating a query to compare the 2 fields.
Thanks
TRADEID TOTAL
215690 $5375
215690 ($5375)
217032 ($6,825.00)
217032 $4,825.00
217032 $2,000.00
497541L $80.00
843415L $80.00
I'm trying to find the best way to reconcile records in a table which
contain values that (should) net out to zero, using the TRADEID. I would like
to:
A) have the query result showing any records that don't net out (I've ben
using the sum function but would like to see if there is a way to match both
the TRADEID and the TOTAL field to match record amount for record amount)
B) using a separate query, return all the records that have the same Total
without having the same TRADEID. - the table below would return only the
last 2 records.
I'm having a hard time trying to compare records within the same table. Is
there anyway to do this without having to create 2 tables from that one
table, and creating a query to compare the 2 fields.
Thanks
TRADEID TOTAL
215690 $5375
215690 ($5375)
217032 ($6,825.00)
217032 $4,825.00
217032 $2,000.00
497541L $80.00
843415L $80.00