Tested in Build MSSQL (14306)
Go to Reports-New Query Report and execute the query.
SELECT wo.WORKORDERID "Request ID",
wo.title "Subject",
ti.FIRST_NAME "Technician",
std.statusname "Request Status",
case
when
DATEDIFF(day, dateadd(s,datediff(s,GETUTCDATE() ,getdate()) +(wo.resolvedtime/1000),'1970-01-01 00:00:00'),GETDATE()) < 5 then 'Resolved less than 5 days' when
(DATEDIFF(day, dateadd(s,datediff(s,GETUTCDATE() ,getdate()) +(wo.resolvedtime/1000),'1970-01-01 00:00:00'),GETDATE()) >=5 and DATEDIFF(day, dateadd(s,datediff(s,GETUTCDATE() ,getdate()) +(wo.resolvedtime/1000),'1970-01-01 00:00:00'),GETDATE()) < 10) then 'Resolved greater then 5 days and less than 10 days' when
(DATEDIFF(day, dateadd(s,datediff(s,GETUTCDATE() ,getdate()) +(wo.resolvedtime/1000),'1970-01-01 00:00:00'),GETDATE()) >=10) then 'Resolved greater then 10 days' else null end "Period" FROM WorkOrder wo
LEFT JOIN WorkOrderStates wos ON wo.WORKORDERID=wos.WORKORDERID
Left join statusdefinition std on wos.statusid=std.statusid
LEFT JOIN SDUser td ON wos.OWNERID=td.USERID
LEFT JOIN AaaUser ti ON td.USERID=ti.USER_ID WHERE (wo.ISPARENT='1') and std.ispending='0' order by 3