<?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 Code Conversion to QlikView in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/SQL-Code-Conversion-to-QlikView/m-p/444901#M1164992</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Problem is solved.&lt;/P&gt;&lt;P&gt;There was no problem with case statement.&lt;/P&gt;&lt;P&gt;It was a problem with condition in joining of table. I was using the following condition:&lt;/P&gt;&lt;P&gt;dm.snapshot_date&lt;SPAN style="font-size: 8pt;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #004d4d; font-size: 8pt;"&gt;'31-JUL-2012'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #004d4d; font-size: 8pt;"&gt;Based on above condition it was not joining the table. I replaced it with following:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;dm.snapshot_date&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #004d4d; font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #004d4d; font-size: 8pt;"&gt;TO_DATE('31-JUL-2012','DD-MON-YYYY') &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Sep 2012 18:11:23 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-09-27T18:11:23Z</dc:date>
    <item>
      <title>SQL Code Conversion to QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Code-Conversion-to-QlikView/m-p/444898#M1164989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: &amp;amp;quot;Arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 10pt;"&gt;Hi All, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: &amp;amp;quot;Arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 10pt;"&gt;I am currently converting some of our business's SQL have created. One of the case statement is not returning correct result from database.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: &amp;amp;quot;Arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 10pt;"&gt;LOAD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: &amp;amp;quot;Arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 10pt;"&gt;........&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: &amp;amp;quot;Arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 10pt;"&gt;....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: &amp;amp;quot;Arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 10pt;"&gt;SQL SELECT&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: &amp;amp;quot;Arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 10pt;"&gt;....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: &amp;amp;quot;Arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 10pt;"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008080; font-size: 10pt;"&gt;,Case&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 10pt;"&gt;when&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-size: 10pt;"&gt; (em.elapsed_months &amp;gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;6&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 10pt;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-size: 10pt;"&gt; em.communications &amp;gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;6&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-size: 10pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 10pt;"&gt;then&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;1&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 10pt;"&gt;else&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-size: 10pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 10pt;"&gt;end&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 10pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-size: 10pt;"&gt; M6_Non_Engager&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;,&lt;SPAN style="color: #008080; font-size: 10pt;"&gt;case&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 10pt;"&gt;when&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-size: 10pt;"&gt; em.elapsed_months &amp;gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;4&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 10pt;"&gt;then&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;1&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 10pt;"&gt;else&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 10pt;"&gt;end&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 10pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-size: 10pt;"&gt; M4_Non_Engager&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;,&lt;SPAN style="color: #008080; font-size: 10pt;"&gt;case&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 10pt;"&gt;when&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-size: 10pt;"&gt; em.elapsed_months &amp;lt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;4&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 10pt;"&gt;then&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;1&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 10pt;"&gt;else&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 10pt;"&gt;end&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 10pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-size: 10pt;"&gt;&amp;nbsp; Engaged&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-size: 10pt;"&gt;.....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-size: 10pt;"&gt;// Following is the case statement which is returning 'No Value' always but in database actually there are all values.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;,&lt;SPAN style="color: #008080; font-size: 10pt;"&gt;case&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 10pt;"&gt;when&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-size: 10pt;"&gt; dm.score&amp;nbsp; = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;1&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 10pt;"&gt;then&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;'Low Email Tech Laggards'&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="color: #008080; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; when&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-size: 10pt;"&gt; dm.score&amp;nbsp; = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;2&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 10pt;"&gt;then&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;'Low Email Gamers'&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 10pt;"&gt;when&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-size: 10pt;"&gt; dm.score&amp;nbsp; = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;3&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 10pt;"&gt;then&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;'Moderates, without Email'&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 10pt;"&gt;when&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-size: 10pt;"&gt; dm.score&amp;nbsp; = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;4&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 10pt;"&gt;then&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;'Moderates, with Email'&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 10pt;"&gt;when&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-size: 10pt;"&gt; dm.score&amp;nbsp; = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;5&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 10pt;"&gt;then&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;'App &amp;amp; Email Gamers'&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #008080; font-size: 10pt;"&gt;when&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-size: 10pt;"&gt; dm.score&amp;nbsp; = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;6&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 10pt;"&gt;then&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;'Avid Mobile Web &amp;amp; BBM'&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #008080; font-size: 10pt;"&gt;when&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-size: 10pt;"&gt; dm.score&amp;nbsp; = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;7&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 10pt;"&gt;then&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;'Super Users'&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #008080; font-size: 10pt;"&gt;else&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;'No Value'&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 10pt;"&gt;end&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 10pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-size: 10pt;"&gt; Behavioral_Segment &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #000080; font-size: 10pt;"&gt;.......&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;, &lt;SPAN style="color: #008080; font-size: 10pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 10pt;"&gt;distinct&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-size: 10pt;"&gt; ld.e_email) &lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 10pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-size: 10pt;"&gt; Countx&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2012 14:34:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Code-Conversion-to-QlikView/m-p/444898#M1164989</guid>
      <dc:creator />
      <dc:date>2012-09-26T14:34:04Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Code Conversion to QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Code-Conversion-to-QlikView/m-p/444899#M1164990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The case statement looks fine to me. Either there are no records with a dm.score value in the range 1-7, or whatever filter you have on your SQL statement is excluding all of them. I suggest that you add dm.score to your query so you can see what is returned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2012 14:42:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Code-Conversion-to-QlikView/m-p/444899#M1164990</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2012-09-26T14:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Code Conversion to QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Code-Conversion-to-QlikView/m-p/444900#M1164991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jonathan fo reply. I checked there are multiple records for each value 1-7. If I add dm.score field it shows only "-" in possible values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2012 14:47:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Code-Conversion-to-QlikView/m-p/444900#M1164991</guid>
      <dc:creator />
      <dc:date>2012-09-26T14:47:11Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Code Conversion to QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Code-Conversion-to-QlikView/m-p/444901#M1164992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Problem is solved.&lt;/P&gt;&lt;P&gt;There was no problem with case statement.&lt;/P&gt;&lt;P&gt;It was a problem with condition in joining of table. I was using the following condition:&lt;/P&gt;&lt;P&gt;dm.snapshot_date&lt;SPAN style="font-size: 8pt;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #004d4d; font-size: 8pt;"&gt;'31-JUL-2012'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #004d4d; font-size: 8pt;"&gt;Based on above condition it was not joining the table. I replaced it with following:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;dm.snapshot_date&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #004d4d; font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #004d4d; font-size: 8pt;"&gt;TO_DATE('31-JUL-2012','DD-MON-YYYY') &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2012 18:11:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Code-Conversion-to-QlikView/m-p/444901#M1164992</guid>
      <dc:creator />
      <dc:date>2012-09-27T18:11:23Z</dc:date>
    </item>
  </channel>
</rss>

