My view is...
You can either have
Select ..blah..blah..blah...where col =
'A'
OR col='B'
OR col='c'
also, you can wrtie..
Select...blah..blah..blah....where
col='A'
union
select...blah..blah..blah...where
col='B'
union
select...blah..blah.blah..where
col='C'
Or better.
Select ...blah..blah..blah....where col in
('A','B','C') ; (with proper index in 'col')
Its really upto you.
-Arun.
|
Title: Message
- OR Vs UNION Saminathan_Seerangan
- Re: OR Vs UNION Mark Richard
- RE: OR Vs UNION Stephane Faroult
- RE: OR Vs UNION Jamadagni, Rajendra
- RE: OR Vs UNION Ganesh Raja
- Re: RE: OR Vs UNION rgaffuri
- Arun Annamalai