I have three date columns in a db row. The columns are independent of each other in that any of them can either be populated or NULL.
I'd like to check to find all rows where any of the date columns fall within a known range.
This is what I have in my WHERE clause:
WHERE (d.date1 OR d.date2 OR d.date3)
BETWEEN '2011-11-09 13:08:46' AND '2011-11-11 16:08:46'
Any ideas as to why this isn't working would be appreciated.
Many thanks