Is there a more elegant way of condensing a where statement over a range of variables with indexed names?
For example instead of:
create table table_cpt_43644
as select *
from master_table
where icd_proc_cd_1 = '43644'
or icd_proc_cd_2 = '43644'
or icd_proc_cd_3 = '43644'
...
or icd_proc_cd_28 = '43644';
use something like the following (which alas doesn't work):
create table table_cpt43644
as select *
from master_table
where icd_proc_cd_1-icd_proc_cd_28 = '43644';