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

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -