<?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: Data inconsistancey in Qlik Script and SqL script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Data-inconsistancey-in-Qlik-Script-and-SqL-script/m-p/1646916#M593293</link>
    <description>&lt;P&gt;Tried that as well...my master tables i have given it as text(ITNO), i give the right format while loading the data itself so that i wont get such errors.&lt;/P&gt;</description>
    <pubDate>Thu, 14 Nov 2019 12:45:58 GMT</pubDate>
    <dc:creator>vpanchuda</dc:creator>
    <dc:date>2019-11-14T12:45:58Z</dc:date>
    <item>
      <title>Data inconsistancey in Qlik Script and SqL script</title>
      <link>https://community.qlik.com/t5/QlikView/Data-inconsistancey-in-Qlik-Script-and-SqL-script/m-p/1646846#M593291</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;Hi Experts&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I am stuck with the below problem since sometime.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;When i query the as below script in Qlik view SCRIPT 1 , i get 38755 rows which is correct&amp;nbsp; ,but when i use the SCRIPT 2 i get 38343 rows&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;U&gt;&lt;STRONG&gt;Script 1 &lt;/STRONG&gt;&lt;/U&gt;&lt;EM&gt;This script works fine but i need to do it in the other way as below because i need master table seperately and the joined table as island table&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;U&gt;&amp;nbsp;&lt;/U&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="1"&gt;lOAD&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="1"&gt;T1-ITENOM,&lt;BR /&gt;T1-FA,&lt;BR /&gt;&lt;FONT face="Arial" size="1"&gt;T1-&lt;/FONT&gt;WH,&lt;BR /&gt;T2-MMI&lt;/FONT&gt;&lt;FONT size="1"&gt;,&lt;BR /&gt;T2-RF,&lt;BR /&gt;T1-NO,&lt;BR /&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="1"&gt;;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="1"&gt;Sql Select &lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Arial" size="1"&gt;T1-ITENOM,T1-FA,&lt;/FONT&gt;&lt;FONT face="Arial" size="1"&gt;T1-&lt;/FONT&gt;&lt;FONT face="Arial" size="1"&gt;WH,T2-MMI&lt;/FONT&gt;&lt;FONT size="1"&gt;,T2-RF,T1-NO&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="1"&gt;fROM BBDB.T1&lt;BR /&gt;INNER JOIN $BBDB.T2&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="1"&gt;ON &lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Arial" size="1"&gt;T1-ITENOM&lt;/FONT&gt;=&lt;FONT face="Arial" size="1"&gt;T2-ITENOM&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;here in Script 2 I&amp;nbsp; have loaded the T1&amp;nbsp; and T2&amp;nbsp; and resident loading the 2 tabled to get the same data as in above script&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;1-I have loaded the master table for both and it shows the complete rows.(checked)&lt;/DIV&gt;&lt;DIV&gt;2-I have added row number in script&amp;nbsp; as well,&amp;nbsp; as precaution so that data wont be missed.&lt;/DIV&gt;&lt;DIV&gt;3-I checked interchanging the table above and below also checked with left join as well .&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Can you see anything wrong in the script , i am not sure if its problem wit the way join workes in qlik..:(&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;U&gt;SCRIPT2&lt;/U&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;qualify *;&lt;BR /&gt;unqualify &lt;SPAN&gt;Itenom&lt;/SPAN&gt;;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;//(i have added the qualify and unqualify because i want this table as a island table it should not be linked with master tables)/&lt;/EM&gt;/&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;T3:&lt;BR /&gt;LOAD*,&lt;/DIV&gt;&lt;DIV&gt;T1.&lt;FONT face="Arial" size="1"&gt;ITENOM&lt;/FONT&gt; As Itenom&lt;/DIV&gt;&lt;DIV&gt;RESIDENT T1;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;//&lt;BR /&gt;//qualify *;&lt;BR /&gt;//unqualify &lt;SPAN&gt;Itenom&lt;/SPAN&gt;;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;inner&amp;nbsp; join&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;T3:&lt;BR /&gt;LOAD*,&lt;/DIV&gt;&lt;DIV&gt;T2.&lt;FONT face="Arial" size="1"&gt;ITENOM&lt;/FONT&gt; As Itenom&lt;/DIV&gt;&lt;DIV&gt;RESIDENT T2;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 16 Nov 2024 19:40:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-inconsistancey-in-Qlik-Script-and-SqL-script/m-p/1646846#M593291</guid>
      <dc:creator>vpanchuda</dc:creator>
      <dc:date>2024-11-16T19:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: Data inconsistancey in Qlik Script and SqL script</title>
      <link>https://community.qlik.com/t5/QlikView/Data-inconsistancey-in-Qlik-Script-and-SqL-script/m-p/1646878#M593292</link>
      <description>&lt;P&gt;I assume that the type of data associated with the T1.ITEM and T2.ITEM fields is varchar. Based on this I suggest you try the following...&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Lower(T1.ITENOM) AS Itenom
Lower(T2.ITENOM) AS Itenom&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 14 Nov 2019 12:10:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-inconsistancey-in-Qlik-Script-and-SqL-script/m-p/1646878#M593292</guid>
      <dc:creator>JGMDataAnalysis</dc:creator>
      <dc:date>2019-11-14T12:10:47Z</dc:date>
    </item>
    <item>
      <title>Re: Data inconsistancey in Qlik Script and SqL script</title>
      <link>https://community.qlik.com/t5/QlikView/Data-inconsistancey-in-Qlik-Script-and-SqL-script/m-p/1646916#M593293</link>
      <description>&lt;P&gt;Tried that as well...my master tables i have given it as text(ITNO), i give the right format while loading the data itself so that i wont get such errors.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2019 12:45:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-inconsistancey-in-Qlik-Script-and-SqL-script/m-p/1646916#M593293</guid>
      <dc:creator>vpanchuda</dc:creator>
      <dc:date>2019-11-14T12:45:58Z</dc:date>
    </item>
    <item>
      <title>Re: Data inconsistancey in Qlik Script and SqL script</title>
      <link>https://community.qlik.com/t5/QlikView/Data-inconsistancey-in-Qlik-Script-and-SqL-script/m-p/1647074#M593295</link>
      <description>&lt;P&gt;The usual way to find such discrepancies is to apply recno() and rowno() to all loads and then to count and to compare all the records and of course to look which records are missing - often it's then quite obvious why they are missing. Before going this way it might be helpful to repeat&amp;nbsp; both approaches several times to check if the number of records is always the same or if the change randomly because of any locking of records.&lt;/P&gt;&lt;P&gt;Beside this there are multiple causes possible why both approaches differ, for example if any of these loads contain a DISTINCT statement. Another point are the values itself - if the join keys are pure numeric and the used number-system of your database and this from Qlik is different (it's quite probably the case) and/or if the keys contain some kind of NULL - which may be changed unnoticed in Qlik by using any NULL variables or NULL mappings - and which also may handled differently between the tools. Also the used driver may change the key-values and/or the number of records of any of these tables.&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2019 15:12:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-inconsistancey-in-Qlik-Script-and-SqL-script/m-p/1647074#M593295</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2019-11-14T15:12:31Z</dc:date>
    </item>
    <item>
      <title>Re: Data inconsistancey in Qlik Script and SqL script</title>
      <link>https://community.qlik.com/t5/QlikView/Data-inconsistancey-in-Qlik-Script-and-SqL-script/m-p/1648562#M593297</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Vinayak, did Marcus' follow-up post help you get things sorted?&amp;nbsp; If so, be sure to give him credit by using Accept as Solution, but you can also post what you found using his suggestion and mark that post too, as I think in this case both would be needed, this way folks will know it helped you and if you can state what the actual issue was, they will have that piece too.&amp;nbsp; If you are still working on things, shout back with an update.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regards,&lt;BR /&gt;Brett&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2019 13:59:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-inconsistancey-in-Qlik-Script-and-SqL-script/m-p/1648562#M593297</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2019-11-19T13:59:55Z</dc:date>
    </item>
  </channel>
</rss>

