select wo.workorderid "RequestID",
wor.to_cc_bcc "Parent Request",
cr.TO_CC_BCC " In conversations",
wo.TITLE "Subject",
LONGTODATE(wo.CREATEDTIME) CREATEDTIME,
nr.TO_CC_BCC "Sent mails" from workorder wo
left join conversation c on wo.workorderid=c.workorderid
left join conversationrecipients cr on c.conversationid=cr.conversationid
left join notify_workorder nw on nw.workorderid=wo.workorderid
left join notification_recipients nr on nw.notificationid=nr.notificationid
left join workorder_recipients wor on wo.workorderid=wor.workorderid
where dateadd(s,datediff(s,GETUTCDATE() ,getdate()) + (wo.CREATEDTIME/1000),'1970-01-01 00:00:00') >= convert(varchar,'2018-01-30 00:00',21) and dateadd(s,datediff(s,GETUTCDATE() ,getdate()) + (wo.CREATEDTIME/1000),'1970-01-01 00:00:00') <= convert(varchar,'2018-02-03 23:59',21) and