SELECT DISTINCT
created_date
,created_date = CASE WHEN c.created_date = '' THEN Null ELSE DATEADD(hour,-6,CAST(REPLACE(replace(c.created_date,'t',' '),'Z','') AS DATETIME)) END
FROM ACE.stg.Datalake_Case C
WHERE created_date = '2019-12-21T01:12:31.000Z'
UNALTERED: 2019-12-21 01:12 AM
в запросе ИЗМЕНЕНО: 2019-12-20 06:12 PM