sql - Base WHERE statement with many OR statements -
(insert typical i'm noob comment , million apologies asking noob question)
i'm trying simplify query i'm trimming set of data. i've created statement other or statements based off of. issue i'm having not repeating base statement each or condition.
what i'm having do:
where ((base conditions) , x) or ((base conditions) , y) or etc.....
what want do
where ((base conditions) or x or y)
i'm thinking can set base conditions , query base condition or statements don't know if that's i'm suppose do.
thanks in advance!
of course can that. need parentheses:
where (base conditions) , (x or y or z . . .)
Comments
Post a Comment