<?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 Re: Sql &amp;quot;LIKE&amp;quot; Issue in a Sql select Load Statement In Qlik Sense? in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Sql-quot-LIKE-quot-Issue-in-a-Sql-select-Load-Statement-In-Qlik/m-p/1139707#M1939</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Henric,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the response...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Turns out all I had to do was change the wildcard from '*' to '%' and it worked fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understand now that '%' works for sql select statements and if you need to use a wildcard from a csv file, you need to use '*'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again so much for taking the time to look into this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Aug 2016 15:12:15 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-08-19T15:12:15Z</dc:date>
    <item>
      <title>Sql "LIKE" Issue in a Sql select Load Statement In Qlik Sense?</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Sql-quot-LIKE-quot-Issue-in-a-Sql-select-Load-Statement-In-Qlik/m-p/1139705#M1937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to load columns from our database to Qlik sense. Some of the columns will be derived columns.&lt;/P&gt;&lt;P&gt;For eg : In my sql statement if I have something similar to this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Query:&lt;/STRONG&gt;&lt;EM&gt; CASE WHEN Status LIKE 'Rejected*' THEN 'Rejected' ELSE 'Accepted' END AS CurrentStatus&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Output:&lt;/STRONG&gt; This column will show "Rejected" for every line regardless of the Status&amp;nbsp; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I change my query to&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Query:&lt;/STRONG&gt; &lt;EM&gt;CASE WHEN Status = 'Rejected' THEN 'Rejected' ELSE 'Accepted' END AS CurrentStatus&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Output:&lt;/STRONG&gt; It derives the right value for each line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried using IF Statement instead of CASE and that also doesnt seem to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there anything that I am missing? Any help/guidance would be appreciated! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Aug 2016 12:40:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Sql-quot-LIKE-quot-Issue-in-a-Sql-select-Load-Statement-In-Qlik/m-p/1139705#M1937</guid>
      <dc:creator />
      <dc:date>2016-08-19T12:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: Sql "LIKE" Issue in a Sql select Load Statement In Qlik Sense?</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Sql-quot-LIKE-quot-Issue-in-a-Sql-select-Load-Statement-In-Qlik/m-p/1139706#M1938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is SQL syntax, so it is not evaluated by Qlik Sense. Instead it is evaluated by the ODBC driver / OLEDB provider. So, what's possible or not depends on which ODBC driver you use...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A work-around is to use a preceding Load:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load *, If(Status='Rejected', Status, 'Accepted') as Status2;&lt;/P&gt;&lt;P&gt;SQL SELECT ... FROM ... ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then the Load is evaluated by Qlik Sense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Aug 2016 13:38:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Sql-quot-LIKE-quot-Issue-in-a-Sql-select-Load-Statement-In-Qlik/m-p/1139706#M1938</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2016-08-19T13:38:17Z</dc:date>
    </item>
    <item>
      <title>Re: Sql "LIKE" Issue in a Sql select Load Statement In Qlik Sense?</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Sql-quot-LIKE-quot-Issue-in-a-Sql-select-Load-Statement-In-Qlik/m-p/1139707#M1939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Henric,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the response...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Turns out all I had to do was change the wildcard from '*' to '%' and it worked fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understand now that '%' works for sql select statements and if you need to use a wildcard from a csv file, you need to use '*'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again so much for taking the time to look into this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Aug 2016 15:12:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Sql-quot-LIKE-quot-Issue-in-a-Sql-select-Load-Statement-In-Qlik/m-p/1139707#M1939</guid>
      <dc:creator />
      <dc:date>2016-08-19T15:12:15Z</dc:date>
    </item>
  </channel>
</rss>

