I have a table that has columns like this for example:
id,col1,col2,col3,col4
Now, I want to check if ANY of col1, col2,
ANY
col1, col2,
I had a similar problem and solved it this way: SELECT * FROM table WHERE col1 OR col2 IN(SELECT xid FROM tablex WHERE somecol = 3)
SELECT * FROM table WHERE col1 OR col2 IN(SELECT xid FROM tablex WHERE somecol = 3)
Not sure if it is "the best way" but it works for me.
Thoughts?