Hi all,
I am having problems simply figuring out where to start with this problem.
Ultimately I want to create a spreadsheet which adds up all the hours spent at each company.
I have a MySQL database. It holds all the meetings details for each company visited including, the meeting start time and end time.
I want to get all the details of the meetings, find out the total amount of time spent in meetings, then find out the total amount of time spent for each company. The database holds information like so:
meetingID, start Date/Time, End Date/Time, Name of company visiting.
The start and end times are TimeStamps. The Name of the company being visited is from a different table, so multiple instances of the same company will be exactly the same. That said, I know I should use a foreign key, but if I can avoid it that would be fine.
My major problem is just understanding how to find out the time spent for each company. How do I total up the hours?
Any help would be really appreciated
Hugh
I am having problems simply figuring out where to start with this problem.
Ultimately I want to create a spreadsheet which adds up all the hours spent at each company.
I have a MySQL database. It holds all the meetings details for each company visited including, the meeting start time and end time.
I want to get all the details of the meetings, find out the total amount of time spent in meetings, then find out the total amount of time spent for each company. The database holds information like so:
meetingID, start Date/Time, End Date/Time, Name of company visiting.
The start and end times are TimeStamps. The Name of the company being visited is from a different table, so multiple instances of the same company will be exactly the same. That said, I know I should use a foreign key, but if I can avoid it that would be fine.
My major problem is just understanding how to find out the time spent for each company. How do I total up the hours?
Any help would be really appreciated
Hugh