Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Excluding records with symbols

Hello,

I am loading data from a database but since there is alot of records i want to filter the records that contain a symbol.

The following symbols i want to exclude:

*, /, #

I tried the following:

[Example]:

LOAD

     [KeyPart]

SQL SELECT

FROM Database

WHERE [KeyPart] NOT LIKE '*'

4 Replies
tresesco
MVP
MVP

Try something like this:

[Example]:

LOAD

     [KeyPart] ;

SQL SELECT  [KeyPart]

FROM Database

WHERE Not (Instr([KeyPart], '*') Or Instr([KeyPart], '/') Or Instr([KeyPart], '#'));

Edit: Corrected some basics

Not applicable
Author

try this

[Example]:

LOAD

     [KeyPart]

WHERE not match([KeyPart], '*','/','#');

SQL SELECT

FROM Database;

Not applicable
Author

I am using an Informix database and with both solutions I get an OCBD db error

CELAMBARASAN
Partner - Champion
Partner - Champion

Try with this

[Example]:

LOAD

     [KeyPart]

SQL SELECT

FROM Database

WHERE [KeyPart] NOT LIKE '\*'

Can you tell me these symbols are part of a string? if so use WHERE [KeyPart] NOT LIKE '%\*%'