<?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 Select, keeping leading zero in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/SQL-Select-keeping-leading-zero/m-p/1580830#M598285</link>
    <description>&lt;P&gt;Thank you, but this is not working or Im doing it wrong:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SQLTable:&lt;BR /&gt;SQL SELECT&lt;BR /&gt;ABTNR as 'KEYFIELD',&lt;BR /&gt;VALUEFIELD&lt;BR /&gt;FROM SQLTABLE;&lt;/P&gt;&lt;P&gt;MyTable:&lt;BR /&gt;LOAD&lt;BR /&gt;Text(KEYFIELD) as 'KEYFIELD',&lt;BR /&gt;VALUEFIELD&lt;BR /&gt;Resident SQLTable;&lt;/P&gt;&lt;P&gt;Drop Table SQLTable;&lt;/P&gt;</description>
    <pubDate>Thu, 16 May 2019 07:42:00 GMT</pubDate>
    <dc:creator>HermGerm</dc:creator>
    <dc:date>2019-05-16T07:42:00Z</dc:date>
    <item>
      <title>SQL Select, keeping leading zero</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Select-keeping-leading-zero/m-p/1580801#M598283</link>
      <description>&lt;P&gt;Im selecting a Table which contains values like this:&lt;/P&gt;&lt;P&gt;SQL-TABLE:&lt;/P&gt;&lt;P&gt;KEYFIELD&amp;nbsp; &amp;nbsp;VALUEFIELD&lt;/P&gt;&lt;P&gt;070&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;TEXT1&lt;/P&gt;&lt;P&gt;70&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; TEXT2&lt;/P&gt;&lt;P&gt;010&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;TEXT3&lt;/P&gt;&lt;P&gt;020&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;TEXT4&lt;/P&gt;&lt;P&gt;030&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; TEXT5&lt;/P&gt;&lt;P&gt;After Loading the Table inside Qlik is looking like this&lt;/P&gt;&lt;P&gt;QLIK-TABLE:&lt;/P&gt;&lt;P&gt;KEYFIELD&amp;nbsp; &amp;nbsp;VALUEFIELD&lt;/P&gt;&lt;P&gt;70&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;TEXT1&lt;/P&gt;&lt;P&gt;70&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; TEXT2&lt;/P&gt;&lt;P&gt;010&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;TEXT3&lt;/P&gt;&lt;P&gt;020&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;TEXT4&lt;/P&gt;&lt;P&gt;030&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; TEXT5&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Problem is now, that Qlik is treating 070 the same as 70 and converts the 070 also to 70. How can i prevent qlik from doing this? It should extract the data exact like it is in the SQL.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:33:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Select-keeping-leading-zero/m-p/1580801#M598283</guid>
      <dc:creator>HermGerm</dc:creator>
      <dc:date>2024-11-16T03:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Select, keeping leading zero</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Select-keeping-leading-zero/m-p/1580810#M598284</link>
      <description>&lt;P&gt;Try loading the field as text like:&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Load&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Text&lt;/STRONG&gt;(KEYFIELD) as KEYFIELD&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2019 07:05:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Select-keeping-leading-zero/m-p/1580810#M598284</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2019-05-16T07:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Select, keeping leading zero</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Select-keeping-leading-zero/m-p/1580830#M598285</link>
      <description>&lt;P&gt;Thank you, but this is not working or Im doing it wrong:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SQLTable:&lt;BR /&gt;SQL SELECT&lt;BR /&gt;ABTNR as 'KEYFIELD',&lt;BR /&gt;VALUEFIELD&lt;BR /&gt;FROM SQLTABLE;&lt;/P&gt;&lt;P&gt;MyTable:&lt;BR /&gt;LOAD&lt;BR /&gt;Text(KEYFIELD) as 'KEYFIELD',&lt;BR /&gt;VALUEFIELD&lt;BR /&gt;Resident SQLTable;&lt;/P&gt;&lt;P&gt;Drop Table SQLTable;&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2019 07:42:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Select-keeping-leading-zero/m-p/1580830#M598285</guid>
      <dc:creator>HermGerm</dc:creator>
      <dc:date>2019-05-16T07:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Select, keeping leading zero</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Select-keeping-leading-zero/m-p/1580837#M598286</link>
      <description>&lt;P&gt;That way, you probably would not find that table loaded. Try instead using preceding load like:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;MyTable:
LOAD
Text(KEYFIELD) as 'KEYFIELD',
VALUEFIELD 
;
SQL SELECT
ABTNR as 'KEYFIELD',
VALUEFIELD
FROM SQLTABLE;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2019 07:47:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Select-keeping-leading-zero/m-p/1580837#M598286</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2019-05-16T07:47:02Z</dc:date>
    </item>
  </channel>
</rss>

