Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
PipCymruUK
Contributor
Contributor

Loading data that contains certain text

Hi,

I am a total newbie, so please be gentle with me.

I have the following script to load data from a database.

 

SQL SELECT

   "scheduled_date",

   "scheduled_date_year",

   "work_item_type_name"

FROM "ConMonLive_Reporting".dbo."t_work_item_summary"

 

How do I only load data where "work_item_type_name" contains the word "Time"  please?

I have tried Wildmatch bet get an error.

Many thanks

 

 

1 Solution

Accepted Solutions
Taoufiq_Zarra

I don't know if this will help you, but you can usein SQL

WHERE "work_item_type_name" LIKE '%Time%'

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉

View solution in original post

4 Replies
Taoufiq_Zarra

WildMatch() is a QlikView function, not a SQL function

so you can use for example :

load scheduled_date,
scheduled_date_year,
work_item_type_name
Where WildMatch(Upper(work_item_type_name),'*TIME*');

SQL SELECT

   "scheduled_date",

   "scheduled_date_year",

   "work_item_type_name"

FROM "ConMonLive_Reporting".dbo."t_work_item_summary"
Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉
PipCymruUK
Contributor
Contributor
Author

Hi,

 

That has worked but has increased by reload time significantly, are you aware if their is an equivalent SQL function that does the same job?

Thanks

Taoufiq_Zarra

I don't know if this will help you, but you can usein SQL

WHERE "work_item_type_name" LIKE '%Time%'

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉
PipCymruUK
Contributor
Contributor
Author

That has worked a treat, thank you so much.