<?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 CASE WHEN statement not working in script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/CASE-WHEN-statement-not-working-in-script/m-p/241950#M92341</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'd rather use ApplyMap for that in the load of the table in QlikView, getting raw values from the database. Say the field involved in the CASE statement is named "KEY":&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;MappingTable:MAPPING LOAD * INLINE [Input, OutputA, DeveloperB, ConsultantC, Other];Table:LOAD ApplyMap('MappingTable', KEY) AS KEY;SQL SELECT KEY FROM OracleDatabase;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Hope that helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Aug 2010 13:40:48 GMT</pubDate>
    <dc:creator>Miguel_Angel_Baeyens</dc:creator>
    <dc:date>2010-08-05T13:40:48Z</dc:date>
    <item>
      <title>CASE WHEN statement not working in script</title>
      <link>https://community.qlik.com/t5/QlikView/CASE-WHEN-statement-not-working-in-script/m-p/241949#M92340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm having troubles in executing a SQL script from QV on to a Oracle database.&lt;/P&gt;&lt;P&gt;The particular column which is causing the trouble contains a CASE WHEN statement.&lt;BR /&gt;When we (un)comment this part of the script everything is fine&lt;/P&gt;&lt;P&gt;The SQL statement alone parses and retrieves results in tools like: "Oracle SQL developper" or "TOAD"&lt;BR /&gt;But when ran from QV-script it returns a SQL parse error...(unless we "//" this part)&lt;/P&gt;&lt;P&gt;It seems QV-script can't cope with the CASE WHEN statement (or someting goes wrong when translating it) cause when I ran a very simple example of a CASE WHEN statement from the QV-script it's also giving me the error...&lt;/P&gt;&lt;P&gt;Anyone any ideas (using QV 9 sr 5&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Aug 2010 13:26:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/CASE-WHEN-statement-not-working-in-script/m-p/241949#M92340</guid>
      <dc:creator />
      <dc:date>2010-08-05T13:26:31Z</dc:date>
    </item>
    <item>
      <title>CASE WHEN statement not working in script</title>
      <link>https://community.qlik.com/t5/QlikView/CASE-WHEN-statement-not-working-in-script/m-p/241950#M92341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'd rather use ApplyMap for that in the load of the table in QlikView, getting raw values from the database. Say the field involved in the CASE statement is named "KEY":&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;MappingTable:MAPPING LOAD * INLINE [Input, OutputA, DeveloperB, ConsultantC, Other];Table:LOAD ApplyMap('MappingTable', KEY) AS KEY;SQL SELECT KEY FROM OracleDatabase;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Hope that helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Aug 2010 13:40:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/CASE-WHEN-statement-not-working-in-script/m-p/241950#M92341</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2010-08-05T13:40:48Z</dc:date>
    </item>
    <item>
      <title>CASE WHEN statement not working in script</title>
      <link>https://community.qlik.com/t5/QlikView/CASE-WHEN-statement-not-working-in-script/m-p/241951#M92342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems when I choose a different connect string (e.g "Microsoft OLE DB for Oracle" vs "Oracle native OLE DB" ) the QV script with the CASE WHEN does gets parsed!!&lt;/P&gt;&lt;P&gt;So probably the Oracle OLE DB driver is not ready for CASE WHEN's (and MicroSoft OLE DB is)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Aug 2010 13:43:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/CASE-WHEN-statement-not-working-in-script/m-p/241951#M92342</guid>
      <dc:creator />
      <dc:date>2010-08-05T13:43:06Z</dc:date>
    </item>
    <item>
      <title>CASE WHEN statement not working in script</title>
      <link>https://community.qlik.com/t5/QlikView/CASE-WHEN-statement-not-working-in-script/m-p/241952#M92343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;instead of dealing with the 'case'-statement and some OLE DB driver problems in the sql-part using the if()-function in the load-part of the statement could be another solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Aug 2010 14:05:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/CASE-WHEN-statement-not-working-in-script/m-p/241952#M92343</guid>
      <dc:creator>orlando</dc:creator>
      <dc:date>2010-08-05T14:05:09Z</dc:date>
    </item>
  </channel>
</rss>

