Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Where not match?

I am importing an excel file that contains a few fields - one of them being zip_code. I would like to only import those rows from the excel file that do not contain a specific set of zip codes and for some reason nothing that I try works.

this is what I have as the where clause:

where not match(ZIP_CODE, 55555,44444,33333,22222);

does anybody know why this is not working? The script re-loads, but the zip codes are still there.

Thanks

1 Solution

Accepted Solutions
Not applicable
Author

Any chance the imported data is TEXT you need to wrap your zip codes with quotes '55555', '666666' etc?

View solution in original post

5 Replies
Not applicable
Author

Have you tried:   where match(ZIP_CODE, ........) = 0

Not applicable
Author

That doen't work either. The only thing that I have been able to get working is:

where ZIP_CODE <> 55555;

but that only works for one

swarup_malli
Specialist
Specialist

try

where not match(ZIP_CODE, '55555','44444','33333','22222')

Not applicable
Author

Any chance the imported data is TEXT you need to wrap your zip codes with quotes '55555', '666666' etc?

swarup_malli
Specialist
Specialist

You are missing quotes

Or you can create a Flag_ZIPCODE  COLUMN in the excel

then

specify

where Flag_ZIPCODE <> '1'

here 1 corresponds to values you want to filter