SELECT wo.WORKORDERID AS "Request ID", wo.TITLE AS "Subject",aau.FIRST_NAME AS "Requester", ti.FIRST_NAME AS "Technician", queuedefinition.queuename "Group",sdo.NAME AS "Site", ad.ORG_NAME AS "Account", pd.PRIORITYNAME AS "Priority",LONGTODATE(wo.CREATEDTIME) AS "Created Time",
(select au.first_name from workorderhistory woh left join aaauser au on woh.operationownerid=au.user_id where woh.operation ='update' and woh.operationownerid !=1 and
woh.historyid = (select min(historyid) from workorderhistory woh1 where woh1.workorderid=wo.workorderid and woh1.operation='update')) "First Updated Technician" FROM WorkOrder wo
LEFT JOIN WorkOrderStates wos on wo.WORKORDERID=wos.WORKORDERID
LEFT JOIN SDUser td ON wos.OWNERID=td.USERID LEFT JOIN AaaUser ti ON td.USERID=ti.USER_ID LEFT JOIN SDUser sdu ON wo.REQUESTERID=sdu.USERID LEFT JOIN AaaUser aau ON sdu.USERID=aau.USER_ID LEFT JOIN SiteDefinition siteDef ON wo.SITEID=siteDef.SITEID LEFT JOIN SDOrganization sdo ON siteDef.SITEID=sdo.ORG_ID LEFT JOIN PriorityDefinition pd ON wos.PRIORITYID=pd.PRIORITYID LEFT JOIN AccountSiteMapping asm ON wo.SITEID=asm.SITEID LEFT JOIN AccountDefinition ad ON asm.ACCOUNTID=ad.ORG_ID
left join workorder_queue ON workorder_queue.workorderid=wo.workorderid
left join queuedefinition ON workorder_queue.queueid=queuedefinition.queueid
WHERE wo.CREATEDTIME >= <from_thisweek> AND wo.CREATEDTIME <= <to_thisweek>
Date filter is added for this week in RED, please change it as per your requirement