<?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 Decode function after SQL prefix in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Decode-function-after-SQL-prefix/m-p/612941#M226180</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;While loading data to my QlikView application I am trying to use advanced SQL features such as functions (e.g. decode()), joins etc. after the prefix SQL as shown below example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;XYZ:&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; [AAA] as &lt;A&gt;, &lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; [BBB] as &lt;B&gt;, &lt;/B&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; [CCC] as &lt;C&gt;;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;SQL select AAA, BBB, &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;DECODE (warehouse_id, &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;1, 'Southlake',&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;2, 'San Francisco', &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;'Non domestic')&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;) as CCC from TableName&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above situation, QlikView throws an error like 'Unknown Column Name - DECODE'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What's the workaround?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Mar 2014 10:51:27 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-03-24T10:51:27Z</dc:date>
    <item>
      <title>Decode function after SQL prefix</title>
      <link>https://community.qlik.com/t5/QlikView/Decode-function-after-SQL-prefix/m-p/612941#M226180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;While loading data to my QlikView application I am trying to use advanced SQL features such as functions (e.g. decode()), joins etc. after the prefix SQL as shown below example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;XYZ:&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; [AAA] as &lt;A&gt;, &lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; [BBB] as &lt;B&gt;, &lt;/B&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; [CCC] as &lt;C&gt;;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;SQL select AAA, BBB, &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;DECODE (warehouse_id, &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;1, 'Southlake',&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;2, 'San Francisco', &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;'Non domestic')&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;) as CCC from TableName&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above situation, QlikView throws an error like 'Unknown Column Name - DECODE'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What's the workaround?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Mar 2014 10:51:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Decode-function-after-SQL-prefix/m-p/612941#M226180</guid>
      <dc:creator />
      <dc:date>2014-03-24T10:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: Decode function after SQL prefix</title>
      <link>https://community.qlik.com/t5/QlikView/Decode-function-after-SQL-prefix/m-p/612942#M226181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DECODE is an Oracle SQL version of CASE, which does not exist in Qlikview. You may have to either set a linked table or resort to nested IFs, I'm afraid.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Mar 2014 11:02:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Decode-function-after-SQL-prefix/m-p/612942#M226181</guid>
      <dc:creator>ThornOfCrowns</dc:creator>
      <dc:date>2014-03-24T11:02:16Z</dc:date>
    </item>
  </channel>
</rss>

