<?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 qlikview syntax - loading qvd files and table left join in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/qlikview-syntax-loading-qvd-files-and-table-left-join/m-p/219902#M72872</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi thanks for your answer, that seemed to work fine.&lt;/P&gt;&lt;P&gt;However i was also wondering if we could take this a little further and get my whole data load script fixed.&lt;/P&gt;&lt;P&gt;The original SQL script looked like the following:&lt;/P&gt;&lt;P&gt;-------------------------------------&lt;/P&gt;&lt;P&gt;SELECT&lt;BR /&gt;ACCOUNT.ACC_ID,&lt;BR /&gt;ACCOUNT.ACCSHRT_COD,&lt;BR /&gt;ACCOUNT.ACC_COD1,&lt;BR /&gt;ACCOUNT.SERVAL_ID,&lt;BR /&gt;ACCOUNT.SUBLED_ID,&lt;BR /&gt;ACCOUNT.ACC_DSC,&lt;BR /&gt;TRX.TRX_ID,&lt;BR /&gt;TRX.TRXTYR_ID,&lt;BR /&gt;TRX.BASE_AMT,&lt;BR /&gt;TRX.DRCR_FLG,&lt;BR /&gt;TRX.OSBASE_AMT,&lt;BR /&gt;TRX.OSDRCR_FLG,&lt;BR /&gt;TRXDAT.SRT_DAT,&lt;BR /&gt;TRXDAT.DATTYP_ID,&lt;BR /&gt;TRXDAT.TRX_DAT,&lt;BR /&gt;TRX.TRX_REF&lt;BR /&gt;&lt;BR /&gt;FROM ATE.ACCOUNT ACCOUNT, ATE.TRX TRX, ATE.TRXDAT TRXDAT&lt;BR /&gt;&lt;BR /&gt;WHERE ACCOUNT.ACC_ID = TRX.ACC_ID AND TRX.TRX_ID = TRXDAT.TRX_ID&lt;BR /&gt;AND ((ACCOUNT.LEDTYP_ID='01' AND (TRX.OSBASE_AMT&amp;lt;&amp;gt;0.00) AND (TRXDAT.DATTYP_ID='DUE'))&lt;/P&gt;&lt;P&gt;--------------------------------&lt;/P&gt;&lt;P&gt;It would be great to simply add this SQL script to QlikView data script load but i know it doesnt work like that. Therefore what would the script above have to look like in QlikView load script to get the same outcome?&lt;/P&gt;&lt;P&gt;Note the 3 tables and their relationships + the conditions with the AND + WHERE statements.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Jul 2010 10:20:40 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-07-12T10:20:40Z</dc:date>
    <item>
      <title>qlikview syntax - loading qvd files and table left join</title>
      <link>https://community.qlik.com/t5/QlikView/qlikview-syntax-loading-qvd-files-and-table-left-join/m-p/219900#M72870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have created 2 qvd files and and now want to import them into my qlikivew application and perform a left join.&lt;/P&gt;&lt;P&gt;The accounts qvd table has 1130 rows and the transactions table 161000 rows. Therefore i want to add a left join to show all ACCOUNTS and only those TRANSACTIONS where ACC_ID match.&lt;/P&gt;&lt;P&gt;My script is the following&lt;/P&gt;&lt;P style="font-weight: bold"&gt;LOAD * FROM data\ACCOUNTS.qvd(qvd);&lt;BR /&gt;LOAD * FROM data\TRANSACTIONS.qvd(qvd);&lt;BR /&gt;&lt;BR /&gt;FINALTABLE:&lt;BR /&gt;SELECT Accounts.ACC_ID, Transactions.ACC_ID&lt;BR /&gt;FROM Accounts left join Transactions&lt;/P&gt;&lt;P&gt;Why doesnt this script work?&lt;/P&gt;&lt;P&gt;The load part works but the FINALTABLE doesnt.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-1914_sourceID:1914" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Jul 2010 11:05:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/qlikview-syntax-loading-qvd-files-and-table-left-join/m-p/219900#M72870</guid>
      <dc:creator />
      <dc:date>2010-07-11T11:05:01Z</dc:date>
    </item>
    <item>
      <title>qlikview syntax - loading qvd files and table left join</title>
      <link>https://community.qlik.com/t5/QlikView/qlikview-syntax-loading-qvd-files-and-table-left-join/m-p/219901#M72871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jason,&lt;/P&gt;&lt;P&gt;As I understand the problem you are trying to solve is to load only those accounts that have one ro more transactions?&lt;/P&gt;&lt;P&gt;Try this script:&lt;BR /&gt;transactions:&lt;BR /&gt;LOAD * FROM data\TRANSACTIONS.qvd(qvd);&lt;/P&gt;&lt;P&gt;LOAD * FROM data\ACCOUNTS.qvd(qvd)&lt;BR /&gt;where exists(ACC_ID,ACC_ID);&lt;/P&gt;&lt;P&gt;After the above lines you will have two tables in Qlikview, associated by ACC_ID, and only those Accounts loaded that have at least one transaction.&lt;/P&gt;&lt;P&gt;Karol&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Jul 2010 12:42:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/qlikview-syntax-loading-qvd-files-and-table-left-join/m-p/219901#M72871</guid>
      <dc:creator />
      <dc:date>2010-07-11T12:42:35Z</dc:date>
    </item>
    <item>
      <title>qlikview syntax - loading qvd files and table left join</title>
      <link>https://community.qlik.com/t5/QlikView/qlikview-syntax-loading-qvd-files-and-table-left-join/m-p/219902#M72872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi thanks for your answer, that seemed to work fine.&lt;/P&gt;&lt;P&gt;However i was also wondering if we could take this a little further and get my whole data load script fixed.&lt;/P&gt;&lt;P&gt;The original SQL script looked like the following:&lt;/P&gt;&lt;P&gt;-------------------------------------&lt;/P&gt;&lt;P&gt;SELECT&lt;BR /&gt;ACCOUNT.ACC_ID,&lt;BR /&gt;ACCOUNT.ACCSHRT_COD,&lt;BR /&gt;ACCOUNT.ACC_COD1,&lt;BR /&gt;ACCOUNT.SERVAL_ID,&lt;BR /&gt;ACCOUNT.SUBLED_ID,&lt;BR /&gt;ACCOUNT.ACC_DSC,&lt;BR /&gt;TRX.TRX_ID,&lt;BR /&gt;TRX.TRXTYR_ID,&lt;BR /&gt;TRX.BASE_AMT,&lt;BR /&gt;TRX.DRCR_FLG,&lt;BR /&gt;TRX.OSBASE_AMT,&lt;BR /&gt;TRX.OSDRCR_FLG,&lt;BR /&gt;TRXDAT.SRT_DAT,&lt;BR /&gt;TRXDAT.DATTYP_ID,&lt;BR /&gt;TRXDAT.TRX_DAT,&lt;BR /&gt;TRX.TRX_REF&lt;BR /&gt;&lt;BR /&gt;FROM ATE.ACCOUNT ACCOUNT, ATE.TRX TRX, ATE.TRXDAT TRXDAT&lt;BR /&gt;&lt;BR /&gt;WHERE ACCOUNT.ACC_ID = TRX.ACC_ID AND TRX.TRX_ID = TRXDAT.TRX_ID&lt;BR /&gt;AND ((ACCOUNT.LEDTYP_ID='01' AND (TRX.OSBASE_AMT&amp;lt;&amp;gt;0.00) AND (TRXDAT.DATTYP_ID='DUE'))&lt;/P&gt;&lt;P&gt;--------------------------------&lt;/P&gt;&lt;P&gt;It would be great to simply add this SQL script to QlikView data script load but i know it doesnt work like that. Therefore what would the script above have to look like in QlikView load script to get the same outcome?&lt;/P&gt;&lt;P&gt;Note the 3 tables and their relationships + the conditions with the AND + WHERE statements.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jul 2010 10:20:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/qlikview-syntax-loading-qvd-files-and-table-left-join/m-p/219902#M72872</guid>
      <dc:creator />
      <dc:date>2010-07-12T10:20:40Z</dc:date>
    </item>
  </channel>
</rss>

