Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to write like clause in load statement?

Hi,

I want to refine the data loading in the LOAD statement with help of like clause?

LOAD * from project.qvd (QVD) where project_name like 'projects.%';

Thanks

Samir Sinha

4 Replies
Not applicable
Author

¨Have a look at the wildmatch function, that does exactly what you want.

RickWild64
Partner - Creator
Partner - Creator

You can use 'like':

Load * from project.qvd where project_name like 'projects.*';

should work.

The test is not case-sensitive, so the test above would load 'Projects.xyz' as well as 'projects.xyz'. Wildcards include ? (match a single character) and * (match any number of any characters)

Not applicable
Author

try like this..

LOAD

if( WildMatch(project_name,'projects*') = 1,project_name) as project_name

from project.qvd (QVD);

regards

A'run'

Not applicable
Author

Load * from project.qvd where project_name like 'projects.*';