Answers for "Postgresql select join by date - Join rows where a timestamp value is equal to midnight of the date"

SQL
0

Postgresql select join by date - Join rows where a timestamp value is equal to midnight of the date

SELECT t1.*
FROM t1 
JOIN t2 ON (
    t1.t2_id = t2.id AND
    t1.date_field::TIMESTAMP = t2.datetime_field AT TIME ZONE 'Europe/London'
)
Posted by: Guest on November-28-2021

Code answers related to "Postgresql select join by date - Join rows where a timestamp value is equal to midnight of the date"

Code answers related to "SQL"

Browse Popular Code Answers by Language