By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
ERROR: column "s" does not exist LINE 2: cast(DATEDIFF(s, '1970-01-01 00:00:00.000', '2016-12-09 1... ^
ERROR: column "s" does not exist LINE 2: cast(DATEDIFF(s, '1970-01-01 00:00:00.000', '2016-12-09 1... ^