1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| select substring(r.res_name,0,50) as Resource,
p.proj_id as Project,
t.task_name as Task,
td.AssignmentTimeStart,
td.AssignmentTimeFinish,
(td.AssignmentTimeActualWork / 1000) / 60 as ActualWork,
(a.assn_reg_work / 1000)/60 as RegularWork,
(a.assn_rem_work / 1000)/60 as RemainingWork
from msp_projects p,
msp_assignments a,
msp_resources r,
msp_tasks t,
msp_view_proj_assn_tp_by_day td
where p.proj_id = a.proj_id
and a.task_uid = t.task_uid
and a.res_uid = r.res_uid
and a.assn_uid = td.AssignmentUniqueID
and AssignmentTimeActualWork is not null
and left (r.res_name,50)= left(@resource,50)
--and r.res_name=substring (@resource,0,20)
and AssignmentTimeStart > @startdate
and AssignmentTimeFinish < @enddate |
Partager