
Not applicable
2013-02-28
08:23 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How to use "like" query in QlikView Script?
Hi,
I have an SQL query as " select x,y,z from tablename where column_name like '%ar%ul%' "
How to write the above query in Qlikview Script?
Any help is greatly appreciated
- Tags:
- qlikview_scripting
29,958 Views
1 Solution
Accepted Solutions

Partner - Champion III
2013-02-28
08:31 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Something like this:
load x,y,z from tablename
where wildmatch(column_name1, '*ar*ul*') and not wildmatch(column_name2, '*mag*');
talk is cheap, supply exceeds demand
4 Replies

Not applicable
2013-02-28
08:26 AM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sorry, a small addition to the above query -- select x,y,z from tablename where column_name1 like '%ar%ul%' and column_name2 not like '%mag%'
21,048 Views

Partner - Champion III
2013-02-28
08:31 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Something like this:
load x,y,z from tablename
where wildmatch(column_name1, '*ar*ul*') and not wildmatch(column_name2, '*mag*');
talk is cheap, supply exceeds demand

Not applicable
2013-02-28
08:50 AM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, it worked perfectly. Thanks Gysbert
21,048 Views

Not applicable
2013-02-28
08:51 AM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
you can do this too
LOAD *
FROM YOUR_TABLE
WHERE FIELD_1 LIKE '*ar*ul*'
AND FIELD_2 NOT (LIKE '*mag*')
