Hello,
I am trying to select multiple variables that can be found in multiple columns in the most efficient manner.
My columns are: CPT1, OTHERCPT2, OTHERCPT3....OTHERCPT7, CONCPT1.....CONCPT6
The variables I am looking for are various different CPT codes, for example: 58260, 58262, 58263, 58270, 58290,58291, 58292, 58294, etc.
I want to select where any of these variables exist in any of the columns.
Currently I have gotten the below script to work for selecting a single CPT code in all of the columns, however, I am trying to figure out the best way to look for multiple CPT codes in all of the columns.
thank you!
dt1 = current data table ();
dt1 << Select Where(
:CPT == "58260" |
:OTHERCPT1 == "58260" |
:OTHERCPT2 == "58260" |
:OTHERCPT3 == "58260" |
:OTHERCPT4 == "58260"|
:OTHERCPT5 == "58260" |
:OTHERCPT6 == "58260" |
:OTHERCPT7 == "58260" |
:CONCPT1 == "58260" |
:CONCPT2 == "58260" |
:CONCPT3 == "58260" |
:CONCPT4 == "58260" |
:CONCPT5 == "58260" |
:CONCPT6 == "58260"
);