使用JOIN是否有更好的方法来编写下面的查询?
SELECT
t1.id
FROM
t1
WHERE
(
t1.date1 >= (UTC_TIMESTAMP() + INTERVAL - 20 Hour)
OR t1.date2 >= (UTC_TIMESTAMP() + INTERVAL - 20 Hour)
OR t1.id2 IN (SELECT id FROM t2)
OR t1.id3 IN (SELECT id FROM t2)
OR t1.id4 IN (SELECT id FROM t2)
);
更新:只有date2可以是NULL