<?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: A record is different between sql server and qlik sense in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/A-record-is-different-between-sql-server-and-qlik-sense/m-p/1837922#M69259</link>
    <description>&lt;P&gt;Hi, Not sure why this is happening.&lt;/P&gt;&lt;P&gt;My question is whether you want to remove those leading zeros or want to keep them as it is.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 21 Sep 2021 11:07:01 GMT</pubDate>
    <dc:creator>AshutoshBhumkar</dc:creator>
    <dc:date>2021-09-21T11:07:01Z</dc:date>
    <item>
      <title>A record is different between sql server and qlik sense</title>
      <link>https://community.qlik.com/t5/App-Development/A-record-is-different-between-sql-server-and-qlik-sense/m-p/1837875#M69254</link>
      <description>&lt;P&gt;Read the code column from the database, and the record displayed as 0134 in the database (as shown in pic1) becomes 00134 in qlik sense(as shown in pic2) . Why? I'm sure this is the same record and the customer name is same.&lt;/P&gt;&lt;P&gt;Here is my coding,where should be modified?&lt;/P&gt;&lt;P&gt;LOAD *;&lt;/P&gt;&lt;P&gt;SQL&lt;/P&gt;&lt;P&gt;with t1 as(&lt;/P&gt;&lt;P&gt;select head.cwdzcode as code&lt;/P&gt;&lt;P&gt;from&amp;nbsp;CP_kehu as head)&lt;/P&gt;&lt;P&gt;select&amp;nbsp;code&amp;nbsp;&lt;/P&gt;&lt;P&gt;from&amp;nbsp; t1;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pic1.png" style="width: 363px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/62440iD3850B7012CAE7DB/image-dimensions/363x78?v=v2" width="363" height="78" role="button" title="pic1.png" alt="pic1.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pic 2.png" style="width: 424px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/62441i5C602DDFEC9A46D4/image-dimensions/424x137?v=v2" width="424" height="137" role="button" title="pic 2.png" alt="pic 2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Sep 2021 09:05:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/A-record-is-different-between-sql-server-and-qlik-sense/m-p/1837875#M69254</guid>
      <dc:creator>coco</dc:creator>
      <dc:date>2021-09-21T09:05:53Z</dc:date>
    </item>
    <item>
      <title>Re: A record is different between sql server and qlik sense</title>
      <link>https://community.qlik.com/t5/App-Development/A-record-is-different-between-sql-server-and-qlik-sense/m-p/1837922#M69259</link>
      <description>&lt;P&gt;Hi, Not sure why this is happening.&lt;/P&gt;&lt;P&gt;My question is whether you want to remove those leading zeros or want to keep them as it is.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Sep 2021 11:07:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/A-record-is-different-between-sql-server-and-qlik-sense/m-p/1837922#M69259</guid>
      <dc:creator>AshutoshBhumkar</dc:creator>
      <dc:date>2021-09-21T11:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: A record is different between sql server and qlik sense</title>
      <link>https://community.qlik.com/t5/App-Development/A-record-is-different-between-sql-server-and-qlik-sense/m-p/1837997#M69267</link>
      <description>&lt;P&gt;You could handle the field as a string/text. To do so you need to load the field using text() from the database, like this.&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;LOAD 
  text(code) as code, 
  zhongwenmingcheng,
  etc...
;
SQL
with t1 as(
select head.cwdzcode as code
from CP_kehu as head)
select code 
from  t1;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you know that your code always is four (4) digits long then you also could use num() to format it like this.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;LOAD 
  num(code,'0000') as code, 
  zhongwenmingcheng,
  etc...
;
SQL
with t1 as(
select head.cwdzcode as code
from CP_kehu as head)
select code 
from  t1;&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 21 Sep 2021 13:43:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/A-record-is-different-between-sql-server-and-qlik-sense/m-p/1837997#M69267</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2021-09-21T13:43:11Z</dc:date>
    </item>
    <item>
      <title>Re: A record is different between sql server and qlik sense</title>
      <link>https://community.qlik.com/t5/App-Development/A-record-is-different-between-sql-server-and-qlik-sense/m-p/1838005#M69270</link>
      <description>&lt;P&gt;I hope the data in qlik should be consistent with the database, so it should be 0134 in qlik, not 00134. So do you know what the problem is? How to make the record in qlik 0134?&lt;/P&gt;</description>
      <pubDate>Tue, 21 Sep 2021 13:54:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/A-record-is-different-between-sql-server-and-qlik-sense/m-p/1838005#M69270</guid>
      <dc:creator>coco</dc:creator>
      <dc:date>2021-09-21T13:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: A record is different between sql server and qlik sense</title>
      <link>https://community.qlik.com/t5/App-Development/A-record-is-different-between-sql-server-and-qlik-sense/m-p/1838018#M69273</link>
      <description>&lt;P&gt;Thank you very much!&lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt; I have got it.&lt;/P&gt;&lt;P&gt;Do you know how to&amp;nbsp; convert a string to nvarchar type in qlik?&lt;/P&gt;&lt;P&gt;Because I always encounter the problem that Chinese cannot be displayed in qlik, I need to convert the Chinese string to nvarchar(300) type first.I only know how to convert Chinese strings to nvarchar types in the database like this CAST('你好'&amp;nbsp; as nvarchar(300)) .How to implement in qlik?&lt;/P&gt;</description>
      <pubDate>Tue, 21 Sep 2021 14:12:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/A-record-is-different-between-sql-server-and-qlik-sense/m-p/1838018#M69273</guid>
      <dc:creator>coco</dc:creator>
      <dc:date>2021-09-21T14:12:11Z</dc:date>
    </item>
    <item>
      <title>Re: A record is different between sql server and qlik sense</title>
      <link>https://community.qlik.com/t5/App-Development/A-record-is-different-between-sql-server-and-qlik-sense/m-p/1838045#M69278</link>
      <description>&lt;P&gt;if you are loading only one field from table then why you are using with (CTE)&lt;/P&gt;&lt;P&gt;Just use below query&lt;/P&gt;&lt;P&gt;SQL select cwdzcode as code&lt;BR /&gt;from CP_kehu;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;answer to your 2nd question is you can same query which work in sql editor.&lt;/P&gt;&lt;P&gt;Qlik don't have have datatypes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prashant Sangle&lt;/P&gt;</description>
      <pubDate>Tue, 21 Sep 2021 15:34:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/A-record-is-different-between-sql-server-and-qlik-sense/m-p/1838045#M69278</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2021-09-21T15:34:39Z</dc:date>
    </item>
  </channel>
</rss>

