<?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: Different results in SQL and Qlik script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Different-results-in-SQL-and-Qlik-script/m-p/21783#M605275</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you connecting to the same databses?&amp;nbsp; Hope not to a test db from sense?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 May 2018 16:37:11 GMT</pubDate>
    <dc:creator>sasiparupudi1</dc:creator>
    <dc:date>2018-05-11T16:37:11Z</dc:date>
    <item>
      <title>Different results in SQL and Qlik script</title>
      <link>https://community.qlik.com/t5/QlikView/Different-results-in-SQL-and-Qlik-script/m-p/21782#M605273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone, Weirdest thing.&lt;/P&gt;&lt;P&gt;I've got the most basic of scripts:&lt;/P&gt;&lt;P&gt;SQL SELECT "CrstId",&lt;/P&gt;&lt;P&gt;"CrstDescr"&lt;/P&gt;&lt;P&gt;FROM "XXX"."dba"."CourseType";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Qlik Sense, this results in:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;001, description&lt;/P&gt;&lt;P&gt;001, another description&lt;/P&gt;&lt;P&gt;002, description3&lt;/P&gt;&lt;P&gt;002, description4&lt;/P&gt;&lt;P&gt;and so on&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In SQL, it results in:&lt;/P&gt;&lt;P&gt;001, description&lt;/P&gt;&lt;P&gt;002, description3&lt;/P&gt;&lt;P&gt;and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SQL statement is copy-paste. Any idea why i receive multiple values (wrong values by the way) in Qlik, but not in SQL Server?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2018 14:32:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Different-results-in-SQL-and-Qlik-script/m-p/21782#M605273</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-11T14:32:02Z</dc:date>
    </item>
    <item>
      <title>Re: Different results in SQL and Qlik script</title>
      <link>https://community.qlik.com/t5/QlikView/Different-results-in-SQL-and-Qlik-script/m-p/21783#M605275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you connecting to the same databses?&amp;nbsp; Hope not to a test db from sense?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2018 16:37:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Different-results-in-SQL-and-Qlik-script/m-p/21783#M605275</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2018-05-11T16:37:11Z</dc:date>
    </item>
    <item>
      <title>Re: Different results in SQL and Qlik script</title>
      <link>https://community.qlik.com/t5/QlikView/Different-results-in-SQL-and-Qlik-script/m-p/21784#M605276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes, it's the same DB.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2018 16:58:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Different-results-in-SQL-and-Qlik-script/m-p/21784#M605276</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-11T16:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: Different results in SQL and Qlik script</title>
      <link>https://community.qlik.com/t5/QlikView/Different-results-in-SQL-and-Qlik-script/m-p/21785#M605277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be you are loading some historic data before the sql stmt?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try using Preceeding load&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T1: &lt;/P&gt;&lt;P&gt;noconcatenate load *&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 28.6924px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;SQL SELECT "CrstId",&lt;/P&gt;&lt;P style="font-size: 28.6924px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;"CrstDescr"&lt;/P&gt;&lt;P style="font-size: 28.6924px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;FROM "XXX"."dba"."CourseType";&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2018 17:03:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Different-results-in-SQL-and-Qlik-script/m-p/21785#M605277</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2018-05-11T17:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: Different results in SQL and Qlik script</title>
      <link>https://community.qlik.com/t5/QlikView/Different-results-in-SQL-and-Qlik-script/m-p/21786#M605278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sometimes, you need a weekend, or at least in my case I do &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;Found out by looking at the raw data that Qlik was adding leading zeroes to the actual value in the Id field.&lt;/P&gt;&lt;P&gt;So 001 stayed 001, but 1 became 001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Adding Text() fixed this for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Text ([CrstId]) as [CrstId],&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your time!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2018 09:22:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Different-results-in-SQL-and-Qlik-script/m-p/21786#M605278</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-14T09:22:01Z</dc:date>
    </item>
  </channel>
</rss>

