I have a query where I need to select rows where the a I’m checked if 2 fields are newer than a timestamp that I am providing. I need to provide the result if either or both the fields are newer.
In my mind this is how I think that it should work, but I know that you can’t have “AND OR” is there some other command that should be using?
SELECT pid
from parts
WHERE ( lastupdate > '2011-11-29 17:30:57' )
AND OR (othertimestamp > '2011-11-29 17:30:57')
Its just OR that you want
If you want to show which if one or both satisfied the condition you could add this