I cannot figure out how to do the following:
I have table A
patientid
therapistid
dateofservice
B-->A one to many records
I have table B
patientid
therapistid
authorization#
startdate
enddate
#ofunitsauthorized
I need a query that will calculate the # of records from table A that fall within the specified startdate and enddate from table B for the records that match
(patientid=patientid and therapistid=therapistid)
I don't get it. Been trying to figure it out for days.
Any help would be greatly appreciated.
I have table A
patientid
therapistid
dateofservice
B-->A one to many records
I have table B
patientid
therapistid
authorization#
startdate
enddate
#ofunitsauthorized
I need a query that will calculate the # of records from table A that fall within the specified startdate and enddate from table B for the records that match
(patientid=patientid and therapistid=therapistid)
I don't get it. Been trying to figure it out for days.
Any help would be greatly appreciated.