Answered
Need some direction
Can someone point me in the right direction as to what type
of code I should try using? I need to add up some totals from
different tables in the database.
I have the following table structure, they have a lot more fields but I will add the important ones:
Table: associates
Fields: id, assoc_id, initials, hourlyrate
Table: caseactivity
Fields: id, assoc_id, descripofservice, initials, hoursworked
I am outputing all of my data from "caseactivity", but at the bottom of that I need to find a way to total up the hoursworked and get a total cost for the hours worked based on the initials of the person that entered the info. There will be different hourlyrate's I need to pull from the associates table. So I'm not sure how to add up. Any help in the right direction would be appreciated. Thanks!
I have the following table structure, they have a lot more fields but I will add the important ones:
Table: associates
Fields: id, assoc_id, initials, hourlyrate
Table: caseactivity
Fields: id, assoc_id, descripofservice, initials, hoursworked
I am outputing all of my data from "caseactivity", but at the bottom of that I need to find a way to total up the hoursworked and get a total cost for the hours worked based on the initials of the person that entered the info. There will be different hourlyrate's I need to pull from the associates table. So I'm not sure how to add up. Any help in the right direction would be appreciated. Thanks!
