jayemvee
03-21-2007, 12:41 AM
I am not writing correct syntax so dont flame me about that... I simply do not know the syntax for this situation so instead i am writing the priority.
SELECT * FROM table WHERE (condition1 AND contition2) OR (condition3 AND condition4)
This is to relate two other tables and sometimes your id is in condition 1 and sometimes its in condition 3.... I want to prevent overlap between like IDs in the two tables...
Is there a syntax to do that like above?
SELECT * FROM table WHERE (condition1 AND contition2) OR (condition3 AND condition4)
This is to relate two other tables and sometimes your id is in condition 1 and sometimes its in condition 3.... I want to prevent overlap between like IDs in the two tables...
Is there a syntax to do that like above?