<?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: Resident table inner join issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Resident-table-inner-join-issue/m-p/540794#M202116</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Batra,&lt;/P&gt;&lt;P&gt;I am not getting syntax error but it is returning more rows.&lt;/P&gt;&lt;P&gt;SalesReceipt has only Account named "Checking" which is Bank type so It should be getting only rows with "Checking" account but it gets me rows all 3 bank accounts which are in Account Table. So total 24 rows are returned.&lt;/P&gt;&lt;P&gt;I am trying other options.&lt;/P&gt;&lt;P&gt;In the mean time can you please tell me rules of join...&lt;/P&gt;&lt;P&gt;can't we keep more than one "where" clause in one load?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Oct 2013 15:02:03 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-10-29T15:02:03Z</dc:date>
    <item>
      <title>Resident table inner join issue</title>
      <link>https://community.qlik.com/t5/QlikView/Resident-table-inner-join-issue/m-p/540792#M202114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;I have this following script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Account]:&lt;/P&gt;&lt;P&gt;LOAD ListID, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Name, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FullName, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IsActive, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AccountNumber,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AccountType&lt;/P&gt;&lt;P&gt; FROM&lt;/P&gt;&lt;P&gt;[$(Path)$(_CompFileName)_v_Account.qvd]&lt;/P&gt;&lt;P&gt;(qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;[SalesReceipt]:&lt;/P&gt;&lt;P&gt;LOAD TxnID,&lt;/P&gt;&lt;P&gt;'Sales Receipt' as TxnType,&lt;/P&gt;&lt;P&gt;CheckNumber,&lt;/P&gt;&lt;P&gt;Date(TxnDate, 'MM/DD/YYYY') as TxnDate,&lt;/P&gt;&lt;P&gt;DepositToAccountListID, &lt;/P&gt;&lt;P&gt;DepositToAccountFullName&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[$(Path)$(_CompFileName)_v_SalesReceipt.qvd]&lt;/P&gt;&lt;P&gt;(qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;[Temp_Table]:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;TxnID,&lt;/P&gt;&lt;P&gt;TxnType,&lt;/P&gt;&lt;P&gt;CheckNumber,&lt;/P&gt;&lt;P&gt;TxnDate,&lt;/P&gt;&lt;P&gt;DepositToAccountFullName,&lt;/P&gt;&lt;P&gt;DepositToAccountListID&lt;/P&gt;&lt;P&gt;Resident SalesReceipt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;inner join (Temp_Table)&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;ListID,&lt;/P&gt;&lt;P&gt;FullName,&lt;/P&gt;&lt;P&gt;AccountNumber,&lt;/P&gt;&lt;P&gt;AccountType&lt;/P&gt;&lt;P&gt;Resident Account Where Temp_Table.DepositToAccountListID = ListID and AccountType = 'Bank';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;store temp into 'c:\Temp2.qvd';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It gives error "Field Not found Temp_Table.DepositToAccountListID"&lt;/P&gt;&lt;P&gt;Can you guys please help me figure out what is going on here?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Saurabh &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2013 08:11:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Resident-table-inner-join-issue/m-p/540792#M202114</guid>
      <dc:creator />
      <dc:date>2013-10-29T08:11:24Z</dc:date>
    </item>
    <item>
      <title>Re: Resident table inner join issue</title>
      <link>https://community.qlik.com/t5/QlikView/Resident-table-inner-join-issue/m-p/540793#M202115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ur syntax is wrong&lt;/P&gt;&lt;P&gt;"Where Temp_Table.DepositToAccountListID = ListID"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;[Temp_Table]:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;TxnID,&lt;/P&gt;&lt;P&gt;TxnType,&lt;/P&gt;&lt;P&gt;CheckNumber,&lt;/P&gt;&lt;P&gt;TxnDate,&lt;/P&gt;&lt;P&gt;DepositToAccountFullName,&lt;/P&gt;&lt;P&gt;DepositToAccountListID&lt;/P&gt;&lt;P&gt;Resident SalesReceipt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;inner join (Temp_Table)&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;ListID,&lt;/P&gt;&lt;P&gt;FullName,&lt;/P&gt;&lt;P&gt;AccountNumber,&lt;/P&gt;&lt;P&gt;AccountType&lt;/P&gt;&lt;P&gt;Resident Account where AccountType = 'Bank';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;*,Junk&lt;/P&gt;&lt;P&gt;resident Temp_Table where DepositToAccountListID = ListID;&lt;/P&gt;&lt;P&gt;drop table Temp_Table;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2013 09:25:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Resident-table-inner-join-issue/m-p/540793#M202115</guid>
      <dc:creator>rajni_batra</dc:creator>
      <dc:date>2013-10-29T09:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: Resident table inner join issue</title>
      <link>https://community.qlik.com/t5/QlikView/Resident-table-inner-join-issue/m-p/540794#M202116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Batra,&lt;/P&gt;&lt;P&gt;I am not getting syntax error but it is returning more rows.&lt;/P&gt;&lt;P&gt;SalesReceipt has only Account named "Checking" which is Bank type so It should be getting only rows with "Checking" account but it gets me rows all 3 bank accounts which are in Account Table. So total 24 rows are returned.&lt;/P&gt;&lt;P&gt;I am trying other options.&lt;/P&gt;&lt;P&gt;In the mean time can you please tell me rules of join...&lt;/P&gt;&lt;P&gt;can't we keep more than one "where" clause in one load?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2013 15:02:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Resident-table-inner-join-issue/m-p/540794#M202116</guid>
      <dc:creator />
      <dc:date>2013-10-29T15:02:03Z</dc:date>
    </item>
    <item>
      <title>Re: Resident table inner join issue</title>
      <link>https://community.qlik.com/t5/QlikView/Resident-table-inner-join-issue/m-p/540795#M202117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can only reference fields in the table being joined/loaded (Account in this case). You should get the load you require like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;inner join (Temp_Table)&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;ListID As DepositToAccountListID,&lt;/P&gt;&lt;P&gt;ListID,&lt;/P&gt;&lt;P&gt;FullName,&lt;/P&gt;&lt;P&gt;AccountNumber,&lt;/P&gt;&lt;P&gt;AccountType&lt;/P&gt;&lt;P&gt;Resident Account &lt;/P&gt;&lt;P&gt;Where AccountType = 'Bank';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The inner join will removed all records not referenced in the join. If that is nit what you require, use a left join (keep all the&amp;nbsp; first table fields - Temp_Table) or right join (keep all the second table fields - Account).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2013 15:20:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Resident-table-inner-join-issue/m-p/540795#M202117</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2013-10-29T15:20:15Z</dc:date>
    </item>
    <item>
      <title>Re: Resident table inner join issue</title>
      <link>https://community.qlik.com/t5/QlikView/Resident-table-inner-join-issue/m-p/540796#M202118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is what i tried and it worked&lt;/P&gt;&lt;P&gt;But thanks for reaffirming it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2013 15:23:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Resident-table-inner-join-issue/m-p/540796#M202118</guid>
      <dc:creator />
      <dc:date>2013-10-29T15:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: Resident table inner join issue</title>
      <link>https://community.qlik.com/t5/QlikView/Resident-table-inner-join-issue/m-p/540797#M202119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;In QlikView you cannot reference fields in other tables as you'd normally do in a DB query.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Try:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Temp_Table]:&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;TxnID,&lt;/P&gt;&lt;P&gt;TxnType,&lt;/P&gt;&lt;P&gt;CheckNumber,&lt;/P&gt;&lt;P&gt;TxnDate,&lt;/P&gt;&lt;P&gt;DepositToAccountFullName,&lt;/P&gt;&lt;P&gt;DepositToAccountListID&lt;/P&gt;&lt;P&gt;Resident SalesReceipt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;inner join (Temp_Table)&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;ListID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DepositToAccountListID,&lt;/P&gt;&lt;P&gt;FullName,&lt;/P&gt;&lt;P&gt;AccountNumber,&lt;/P&gt;&lt;P&gt;AccountType&lt;/P&gt;&lt;P&gt;Resident Account&lt;/P&gt;&lt;P&gt;Where&amp;nbsp; AccountType = 'Bank';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;store Temp_Table into 'c:\Temp2.qvd';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;In order yo do a JOIN (ANY KIND) you must make sure that the fields that will serve as links are called the same in both tables, In this case you must rename &lt;/STRONG&gt;&lt;EM&gt;ListID as DepositToAccountListID&lt;/EM&gt;&lt;STRONG&gt; so that QlikView knows that those fields values must be equal in order to joind the records.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Hope it helps!&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2013 15:25:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Resident-table-inner-join-issue/m-p/540797#M202119</guid>
      <dc:creator>Carlos_Reyes</dc:creator>
      <dc:date>2013-10-29T15:25:07Z</dc:date>
    </item>
  </channel>
</rss>

