I want to see if the values 'PS_BA' OR 'PS_BS' are in a list of fields:
Here is how I accomplished it with a bunch of OR statements.
Is there a better/more efficient way to do this (especially when the lists are much longer)?
SELECT *
FROM TABLE
WHERE
( ACAD_PLAN_CD in ('PS_BS','PS_BA')
OR ACAD_PLAN_CD_2 in ('PS_BS','PS_BA')
OR ACAD_PLAN_CD_3 in ('PS_BS','PS_BA')
OR ACAD_PLAN_CD_4 in ('PS_BS','PS_BA')
OR ACAD_PLAN_CD_5 in ('PS_BS','PS_BA'))