Hello all, Everyone was very helpful in my last post, I have another question for you.
I have 2 tables
commr and ctac1
commr looks like
invoice customer extended price
------- -------- --------------
100 Bill 100.00
101 Ted 50.00
102 Ralph 40.00
ctac1 looks like
invoice amt_paid
------- --------
100 10.00
100 20.00
101 50.00
102 20.00
100 70.00
102 10.00
I need to run a query to pull records off commr. only when the sum of amt_paid is equal to the extended price for the same invoice #. Any suggestions? everything I try either pulls a million records, 0 records or 1 record...
I have 2 tables
commr and ctac1
commr looks like
invoice customer extended price
------- -------- --------------
100 Bill 100.00
101 Ted 50.00
102 Ralph 40.00
ctac1 looks like
invoice amt_paid
------- --------
100 10.00
100 20.00
101 50.00
102 20.00
100 70.00
102 10.00
I need to run a query to pull records off commr. only when the sum of amt_paid is equal to the extended price for the same invoice #. Any suggestions? everything I try either pulls a million records, 0 records or 1 record...