opticalman
Programmer
I have 2 tables. One is a ledger of payments made per patient ID#. The other is services done for the patient with the doctors name and date of service. I need to sum up the ledger payments and assoiciate those payments with the last doctor to do a service.(the last doctor to see the patient gets credit for any payments) Any suggestions?
ledger
idnumber date paid
0001 01/22/2003 $10
0001 03/24/2004 $20
0002 05/26/2005 $30
0002 07/28/2006 $40
services
idnumber date doctor service
0001 01/02/2003 jones office visit
0001 03/04/2004 smith office visit
0002 05/06/2005 smith office visit
0002 07/05/2006 jones office visit
thanks in advance
Jim Rumbaugh
ledger
idnumber date paid
0001 01/22/2003 $10
0001 03/24/2004 $20
0002 05/26/2005 $30
0002 07/28/2006 $40
services
idnumber date doctor service
0001 01/02/2003 jones office visit
0001 03/04/2004 smith office visit
0002 05/06/2005 smith office visit
0002 07/05/2006 jones office visit
thanks in advance
Jim Rumbaugh