Complex query, Union or OR
407173Oct 22 2003 — edited Oct 24 2003Hi,
I have a complex SQL query with a big WHERE clause,
Select * from TableA , TableB, TableC
where cond1 and cond2 and cond3
now I have to add another condition Cond4, should I go ahead with
First approach
Select * from TableA , TableB, TableC
where (cond1 and cond2 and cond3) or (cond1 and cond2 and cond4)
Secodn Approach
Select * from TableA , TableB, TableC
where cond1 and cond2 and cond3
Union
Select * from TableA , TableB, TableC
where cond1 and cond2 and cond4
Union will be better or OR will be better