79184284

Date: 2024-11-13 09:52:00
Score: 1
Natty:
Report link

This seems to work

SELECT
    TableName,
    CAST(DATEDIFF(second, '1970-01-01', 
        LastUpdateDate AT TIME ZONE 'my time zone' AT TIME ZONE 'UTC') AS BIGINT) AS TimestampInSeconds
FROM
    SynchronizationVersions r
WHERE
    LastUpdateDate IS NOT NULL;
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: AmacOS