My SQL query returned the same charge on every record where a payment was applied to it.
so I have these columns:
ServiceVisitID, charge, payment, serviceCode
And these records:
10031, 150.00, 50.00, 122
10031, 150.00, 25.00, 122
10022, 200.00, 75.00, 123
On visit 10031 I want the total of charges to show 150.00 not 300.00.
I'm not sure if this is something I can do with a formula in Crystal or if it is something I have to deal with in my SQL query.
Any help is appreciated.
Thank you
so I have these columns:
ServiceVisitID, charge, payment, serviceCode
And these records:
10031, 150.00, 50.00, 122
10031, 150.00, 25.00, 122
10022, 200.00, 75.00, 123
On visit 10031 I want the total of charges to show 150.00 not 300.00.
I'm not sure if this is something I can do with a formula in Crystal or if it is something I have to deal with in my SQL query.
Any help is appreciated.
Thank you