SELECT ct.name as NatureOfCall,
u.FirstName + ' ' + u.LastName as Employee,
convert(date, (convert(datetime, switchoffset(c.CreateDatetime, datepart(tzoffset, c.CreateDatetime at time zone 'Central Standard Time'))))) as DateOfCall,
convert(char(8), (convert(datetime, switchoffset(c.CreateDatetime, datepart(tzoffset, c.CreateDatetime at time zone 'Central Standard Time')))), 108) as TimeOfCall,
a.HouseNumber + a.prefixdirectional + a.streetname + a.streettype + a.qualifier + ' / ' + a.xprefixdirectional + a.xstreetname + a.xstreettype + ', ' + a.city as AddressOfCall,
c.CallNumber as CADNumber
FROM [Call] c
INNER JOIN Address a ON c.CurrentAddressID = a.AddressID
INNER JOIN [CallType] ct on c.CallTypeID=ct.CallTypeID
INNER JOIN Users u ON c.CreateUser = u.UserId
WHERE c.CreateDatetime BETWEEN DATEADD(DAY, -1, GETDATE()) AND GETDATE()
ORDER BY c.CreateDatetime
FOR XML PATH('IncidentData'), ROOT('root')