<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Script - Why &amp;quot;FIELD like 'string*'&amp;quot; doesn't work ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Script-Why-quot-FIELD-like-string-quot-doesn-t-work/m-p/306735#M113287</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;I'm trying to load a table from a DB and I want to exclude some records.&lt;/P&gt;&lt;P&gt;To do that I thought to use the LIKE clause in my SQL.&lt;/P&gt;&lt;P&gt;Unfortunately it doesn't work.&lt;/P&gt;&lt;P&gt;I'm expecting 9 records and instead I have two strange results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if I write:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD ACCOUNT_ID,&lt;/P&gt;&lt;P&gt;VALID_FOR_USER_GROUP;&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;FROM CUST_VALUES&lt;/P&gt;&lt;P&gt;WHERE VALID_FOR_USER_GROUP LIKE '*Sesi*';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 0 records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if I write:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD ACCOUNT_ID,&lt;/P&gt;&lt;P&gt;VALID_FOR_USER_GROUP;&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;FROM CUST_VALUES&lt;/P&gt;&lt;P&gt;WHERE VALID_FOR_USER_GROUP LIKE '%Sesi%';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 6 records, NOT 9.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;Thanks a lot&lt;/P&gt;&lt;P&gt;Giampiero&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Jan 2012 15:25:54 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-01-25T15:25:54Z</dc:date>
    <item>
      <title>Script - Why "FIELD like 'string*'" doesn't work ?</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Why-quot-FIELD-like-string-quot-doesn-t-work/m-p/306735#M113287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;I'm trying to load a table from a DB and I want to exclude some records.&lt;/P&gt;&lt;P&gt;To do that I thought to use the LIKE clause in my SQL.&lt;/P&gt;&lt;P&gt;Unfortunately it doesn't work.&lt;/P&gt;&lt;P&gt;I'm expecting 9 records and instead I have two strange results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if I write:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD ACCOUNT_ID,&lt;/P&gt;&lt;P&gt;VALID_FOR_USER_GROUP;&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;FROM CUST_VALUES&lt;/P&gt;&lt;P&gt;WHERE VALID_FOR_USER_GROUP LIKE '*Sesi*';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 0 records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if I write:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD ACCOUNT_ID,&lt;/P&gt;&lt;P&gt;VALID_FOR_USER_GROUP;&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;FROM CUST_VALUES&lt;/P&gt;&lt;P&gt;WHERE VALID_FOR_USER_GROUP LIKE '%Sesi%';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 6 records, NOT 9.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;Thanks a lot&lt;/P&gt;&lt;P&gt;Giampiero&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2012 15:25:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Why-quot-FIELD-like-string-quot-doesn-t-work/m-p/306735#M113287</guid>
      <dc:creator />
      <dc:date>2012-01-25T15:25:54Z</dc:date>
    </item>
    <item>
      <title>Script - Why "FIELD like 'string*'" doesn't work ?</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Why-quot-FIELD-like-string-quot-doesn-t-work/m-p/306736#M113288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Giampero,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL doesn't support * as a wild card - it uses %.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is why the first one returns nothing and the second one works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you run the SQL (from SELECT * onwards) in a query tool, I would expect that you will only get 6 results also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stephen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2012 15:29:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Why-quot-FIELD-like-string-quot-doesn-t-work/m-p/306736#M113288</guid>
      <dc:creator>stephencredmond</dc:creator>
      <dc:date>2012-01-25T15:29:04Z</dc:date>
    </item>
    <item>
      <title>Script - Why "FIELD like 'string*'" doesn't work ?</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Why-quot-FIELD-like-string-quot-doesn-t-work/m-p/306737#M113289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stephen,&lt;/P&gt;&lt;P&gt;thanks a lot.&lt;/P&gt;&lt;P&gt;I tried to use * because on the manual there are some examples using * and I thought it was correct.&lt;/P&gt;&lt;P&gt;About the results with %.&lt;/P&gt;&lt;P&gt;I'm sure we have to obtain 9 records bacause I first tried to do the same Query on my DB, for this reason i'm not understanding the results.&lt;/P&gt;&lt;P&gt;Thank you so much for your help&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Giampiero&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2012 15:34:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Why-quot-FIELD-like-string-quot-doesn-t-work/m-p/306737#M113289</guid>
      <dc:creator />
      <dc:date>2012-01-25T15:34:20Z</dc:date>
    </item>
    <item>
      <title>Script - Why "FIELD like 'string*'" doesn't work ?</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Why-quot-FIELD-like-string-quot-doesn-t-work/m-p/306738#M113290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Giampiero,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason that I think there will only be 6 records in the query is that QlikView is not responsible for collecting the records - the database driver is responsible to execute the query to the database engine and return the records to QlikView.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, if you are only getting 6 records in QlikView, it is because there are only 6 records returned by the driver.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stephen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2012 15:40:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Why-quot-FIELD-like-string-quot-doesn-t-work/m-p/306738#M113290</guid>
      <dc:creator>stephencredmond</dc:creator>
      <dc:date>2012-01-25T15:40:57Z</dc:date>
    </item>
    <item>
      <title>Re: Script - Why "FIELD like 'string*'" doesn't work ?</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Why-quot-FIELD-like-string-quot-doesn-t-work/m-p/306739#M113291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;LOAD ACCOUNT_ID,&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;VALID_FOR_USER_GROUP &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;WHERE &lt;/SPAN&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;wildmatch(VALID_FOR_USER_GROUP, '*Sesi*');&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;SQL SELECT *&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;FROM CUST_VALUES;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sorry steafen i&amp;nbsp; have not see select staement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2012 15:47:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Why-quot-FIELD-like-string-quot-doesn-t-work/m-p/306739#M113291</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2012-01-25T15:47:39Z</dc:date>
    </item>
    <item>
      <title>Script - Why "FIELD like 'string*'" doesn't work ?</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Why-quot-FIELD-like-string-quot-doesn-t-work/m-p/306740#M113292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, your Wildmatch function is not formed correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Secondly, Wildmatch is not a SQL function - it is a QlikView equivalent of a LIKE function (although QlikView also has LIKE).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can include QlikView where clauses in a preceding load like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;LOAD ACCOUNT_ID,&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;VALID_FOR_USER_GROUP&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;Where WildMatch(VALID_FOR_USER_GROUP, '*Sesi*')&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;SQL SELECT *&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;FROM CUST_VALUES;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, that would mean that all of the table rows are returned from the database before they are filtered by QlikView.&amp;nbsp; This is less efficient than having the database engine filter them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stephen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2012 15:55:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Why-quot-FIELD-like-string-quot-doesn-t-work/m-p/306740#M113292</guid>
      <dc:creator>stephencredmond</dc:creator>
      <dc:date>2012-01-25T15:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: Script - Why "FIELD like 'string*'" doesn't work ?</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Why-quot-FIELD-like-string-quot-doesn-t-work/m-p/306741#M113293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;sorry steafen i&amp;nbsp; have not see select staement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;LOAD ACCOUNT_ID,&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;VALID_FOR_USER_GROUP&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;WHERE &lt;/SPAN&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;wildmatch(VALID_FOR_USER_GROUP, '*Sesi*');&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;SQL SELECT *&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;FROM CUST_VALUES;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if we create a conneection then it creates the environment like&amp;nbsp; data base&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so check syntax like also needs to work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2012 16:03:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Why-quot-FIELD-like-string-quot-doesn-t-work/m-p/306741#M113293</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2012-01-25T16:03:43Z</dc:date>
    </item>
  </channel>
</rss>

