Postgresql – joining multiple tables with where clause for each table
Ex. SELECT * FROM A JOIN B ON A.idx = B.idx JOIN C ON A.idx = C.idx WHERE A.create_dt BETWEEN '2023-05-01' AND '2023-05-31' OR A.last_dt BETWEEN '2023-05-01' AND '2023-05-31' OR B.create_dt BETWEEN '2023-05-01' AND '2023-05-31' OR B.last_dt BETWEEN '2023-05-01' AND…