<?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 database load results in a diffrent data outcome in Qlik Automate</title>
    <link>https://community.qlik.com/t5/Qlik-Automate/SQL-database-load-results-in-a-diffrent-data-outcome/m-p/2444332#M3745</link>
    <description>&lt;P&gt;Hi BrunPierre&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;I saw that on a SQL site where they described varchar, the use of the length of the field as descriptive purpose was used.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My data is then:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Marius__0-1713959252400.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/164606iCE81C3F4A3D47917/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Marius__0-1713959252400.png" alt="Marius__0-1713959252400.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;With the outcome that, should any kind of formula (text OR len) be applied to the field, the length and thus the amount of characters will change!&lt;/P&gt;
&lt;P&gt;Any idea how to fix/prevent this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 24 Apr 2024 11:54:28 GMT</pubDate>
    <dc:creator>Marius_</dc:creator>
    <dc:date>2024-04-24T11:54:28Z</dc:date>
    <item>
      <title>SQL database load results in a diffrent data outcome</title>
      <link>https://community.qlik.com/t5/Qlik-Automate/SQL-database-load-results-in-a-diffrent-data-outcome/m-p/2444176#M3740</link>
      <description>&lt;P&gt;Using a SQL Query on a SQL database returns the following data:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Marius__0-1713939123412.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/164577i4D82F9060D19887B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Marius__0-1713939123412.png" alt="Marius__0-1713939123412.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;With the following result:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Marius__1-1713939168097.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/164578i131974034DA08210/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Marius__1-1713939168097.png" alt="Marius__1-1713939168097.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;But executing the same SQL query into Qlikview returns the following:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Marius__2-1713939237984.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/164579i1F1F2A2A74D67C4D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Marius__2-1713939237984.png" alt="Marius__2-1713939237984.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;toetsOnveranderd - Test with no change&lt;/P&gt;
&lt;P&gt;toetsText - Using Text script formula to get text property&lt;/P&gt;
&lt;P&gt;toetsJippo&amp;nbsp; - Self help method to force test property&lt;/P&gt;
&lt;P&gt;With the following outcome in Qlikview:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Marius__3-1713939396974.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/164580i9394ECF650D54056/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Marius__3-1713939396974.png" alt="Marius__3-1713939396974.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;It seems that the 'raw' data in the SQL database is 0965 (OneID,toetsOnveranderd)&lt;/P&gt;
&lt;P&gt;But the SQL query in SQL returns (0965,965) (?)&lt;/P&gt;
&lt;P&gt;And it seems that the script formula "Text" first identify the property is integer makes it a number and the concerts it to text 0965 -&amp;gt; 965 -&amp;gt; "965"&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[It must be noted that data input is from multiple sources into the SQL database].&lt;/P&gt;
&lt;P&gt;This outcome of the usage of the the text formula vs 'raw' data causes a different result/outcome.&lt;/P&gt;
&lt;P&gt;Any idea how to "fix" this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2024 06:34:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Automate/SQL-database-load-results-in-a-diffrent-data-outcome/m-p/2444176#M3740</guid>
      <dc:creator>Marius_</dc:creator>
      <dc:date>2024-04-24T06:34:18Z</dc:date>
    </item>
    <item>
      <title>Re: SQL database load results in a diffrent data outcome</title>
      <link>https://community.qlik.com/t5/Qlik-Automate/SQL-database-load-results-in-a-diffrent-data-outcome/m-p/2444302#M3744</link>
      <description>&lt;P&gt;I think "OneID" is a varchar-type field, that's why "0992" and "992" would be treated as different values, because varchar fields are variable-length character strings, and they can store any combination of characters, including leading zeros.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2024 10:49:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Automate/SQL-database-load-results-in-a-diffrent-data-outcome/m-p/2444302#M3744</guid>
      <dc:creator>BrunPierre</dc:creator>
      <dc:date>2024-04-24T10:49:46Z</dc:date>
    </item>
    <item>
      <title>Re: SQL database load results in a diffrent data outcome</title>
      <link>https://community.qlik.com/t5/Qlik-Automate/SQL-database-load-results-in-a-diffrent-data-outcome/m-p/2444332#M3745</link>
      <description>&lt;P&gt;Hi BrunPierre&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;I saw that on a SQL site where they described varchar, the use of the length of the field as descriptive purpose was used.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My data is then:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Marius__0-1713959252400.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/164606iCE81C3F4A3D47917/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Marius__0-1713959252400.png" alt="Marius__0-1713959252400.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;With the outcome that, should any kind of formula (text OR len) be applied to the field, the length and thus the amount of characters will change!&lt;/P&gt;
&lt;P&gt;Any idea how to fix/prevent this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2024 11:54:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Automate/SQL-database-load-results-in-a-diffrent-data-outcome/m-p/2444332#M3745</guid>
      <dc:creator>Marius_</dc:creator>
      <dc:date>2024-04-24T11:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: SQL database load results in a diffrent data outcome</title>
      <link>https://community.qlik.com/t5/Qlik-Automate/SQL-database-load-results-in-a-diffrent-data-outcome/m-p/2444369#M3746</link>
      <description>&lt;P&gt;By explicitly converting [OneID] to Text([OneID]), you can ensure that its length remains unchanged as in this specific case they represent two distinct values in the source table.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2024 13:13:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Automate/SQL-database-load-results-in-a-diffrent-data-outcome/m-p/2444369#M3746</guid>
      <dc:creator>BrunPierre</dc:creator>
      <dc:date>2024-04-24T13:13:12Z</dc:date>
    </item>
  </channel>
</rss>

