This is going to be a hard one to explain...
We need a formula to total the amount of time spent on a repair job. Our database contains sevearal lines for each job (with distinct job number), each containing a period of time where the engineer has done something with the unit. What we need to end up with is a line for each job number and the total of all the periods of time spent on a job. Is this possible?
The job number field is Timelog.JOB_REF and the time field is Timelog.TIME_TAKEN.
I have spoken to the company that designed our software and they (helpfully?) sent me an SQL script to do it...maybe that could be of use to one of you lovely people
Select sum(Time_taken) from TimeLog
join Instruct on REf_code = job_ref
where job_ref = @jobnumber
Makes perfect sense to me. (not).
We need a formula to total the amount of time spent on a repair job. Our database contains sevearal lines for each job (with distinct job number), each containing a period of time where the engineer has done something with the unit. What we need to end up with is a line for each job number and the total of all the periods of time spent on a job. Is this possible?
The job number field is Timelog.JOB_REF and the time field is Timelog.TIME_TAKEN.
I have spoken to the company that designed our software and they (helpfully?) sent me an SQL script to do it...maybe that could be of use to one of you lovely people
Select sum(Time_taken) from TimeLog
join Instruct on REf_code = job_ref
where job_ref = @jobnumber
Makes perfect sense to me. (not).