Hello All.
I am sure this is an easy thing but I cannot seem to wrap my head around it. I am also sure this has been asked before but I am not certain how to articulate it in a search.
I have two tables, Table 1 is a list of invoices that contains the total cost related to the invoice (This is the one side). Table 2 lists each individual cost line broken out (each cost is a separate record). Invoice number is the related field. What I would like to do is compare the sum of the individual cost lines in table 2 to the total cost in table 1 and return all records from table 2 that do not add up to the value on table 1.
Thanks for any help you can provide.
I am sure this is an easy thing but I cannot seem to wrap my head around it. I am also sure this has been asked before but I am not certain how to articulate it in a search.
I have two tables, Table 1 is a list of invoices that contains the total cost related to the invoice (This is the one side). Table 2 lists each individual cost line broken out (each cost is a separate record). Invoice number is the related field. What I would like to do is compare the sum of the individual cost lines in table 2 to the total cost in table 1 and return all records from table 2 that do not add up to the value on table 1.
Thanks for any help you can provide.