<?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 Best way to pull data in from the same table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Best-way-to-pull-data-in-from-the-same-table/m-p/563238#M694261</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a question on what the best way to pull data into QV is. I have 4 tables I need to bring in, e.g. 2 of them are common and 2 unique:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the moment I am pulling the data in via OLDDB queries. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A number of queries reuse the same SQL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently, I left join to other tables to get the data I need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To reduce the calls on the db, is there an easier way to do this? I would like to run the queries for Table2_tmp and Table3_tmp once, and left join when I need them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help/advice gratefully received!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13735498241046661" jivemacro_uid="_13735498241046661"&gt;&lt;P&gt;Table1_tmp: &lt;BR /&gt;SQL SELECT * FROM Table1;&lt;/P&gt;&lt;P&gt;LEFT JOIN (Table1_tmp)&lt;BR /&gt;Table2_tmp:&lt;BR /&gt;SQL SELECT * FROM Table2;&lt;/P&gt;&lt;P&gt;LEFT JOIN (Table1_tmp)&lt;BR /&gt;Table3_tmp:&lt;BR /&gt;SQL SELECT * FROM Table3;&lt;/P&gt;&lt;P&gt;MASTER:&lt;BR /&gt;LOAD *&lt;BR /&gt;RESIDENT Table1_tmp;&lt;BR /&gt;DROP TABLE Table1_tmp;&lt;/P&gt;&lt;P&gt;Table4_tmp: &lt;BR /&gt;SQL SELECT * FROM Table4;&lt;/P&gt;&lt;P&gt;LEFT JOIN (Table1_tmp)&lt;BR /&gt;Table2_tmp:&lt;BR /&gt;SQL SELECT * FROM Table2;&lt;/P&gt;&lt;P&gt;LEFT JOIN (Table1_tmp)&lt;BR /&gt;Table3_tmp:&lt;BR /&gt;SQL SELECT * FROM Table3;&lt;/P&gt;&lt;P&gt;CONCATENATE (MASTER)&lt;BR /&gt;LOAD *&lt;BR /&gt;RESIDENT Table4_tmp;&lt;BR /&gt;DROP TABLE Table4_tmp;&lt;/P&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Jul 2013 13:40:59 GMT</pubDate>
    <dc:creator>qliknerd</dc:creator>
    <dc:date>2013-07-11T13:40:59Z</dc:date>
    <item>
      <title>Best way to pull data in from the same table</title>
      <link>https://community.qlik.com/t5/QlikView/Best-way-to-pull-data-in-from-the-same-table/m-p/563238#M694261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a question on what the best way to pull data into QV is. I have 4 tables I need to bring in, e.g. 2 of them are common and 2 unique:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the moment I am pulling the data in via OLDDB queries. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A number of queries reuse the same SQL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently, I left join to other tables to get the data I need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To reduce the calls on the db, is there an easier way to do this? I would like to run the queries for Table2_tmp and Table3_tmp once, and left join when I need them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help/advice gratefully received!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13735498241046661" jivemacro_uid="_13735498241046661"&gt;&lt;P&gt;Table1_tmp: &lt;BR /&gt;SQL SELECT * FROM Table1;&lt;/P&gt;&lt;P&gt;LEFT JOIN (Table1_tmp)&lt;BR /&gt;Table2_tmp:&lt;BR /&gt;SQL SELECT * FROM Table2;&lt;/P&gt;&lt;P&gt;LEFT JOIN (Table1_tmp)&lt;BR /&gt;Table3_tmp:&lt;BR /&gt;SQL SELECT * FROM Table3;&lt;/P&gt;&lt;P&gt;MASTER:&lt;BR /&gt;LOAD *&lt;BR /&gt;RESIDENT Table1_tmp;&lt;BR /&gt;DROP TABLE Table1_tmp;&lt;/P&gt;&lt;P&gt;Table4_tmp: &lt;BR /&gt;SQL SELECT * FROM Table4;&lt;/P&gt;&lt;P&gt;LEFT JOIN (Table1_tmp)&lt;BR /&gt;Table2_tmp:&lt;BR /&gt;SQL SELECT * FROM Table2;&lt;/P&gt;&lt;P&gt;LEFT JOIN (Table1_tmp)&lt;BR /&gt;Table3_tmp:&lt;BR /&gt;SQL SELECT * FROM Table3;&lt;/P&gt;&lt;P&gt;CONCATENATE (MASTER)&lt;BR /&gt;LOAD *&lt;BR /&gt;RESIDENT Table4_tmp;&lt;BR /&gt;DROP TABLE Table4_tmp;&lt;/P&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jul 2013 13:40:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Best-way-to-pull-data-in-from-the-same-table/m-p/563238#M694261</guid>
      <dc:creator>qliknerd</dc:creator>
      <dc:date>2013-07-11T13:40:59Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to pull data in from the same table</title>
      <link>https://community.qlik.com/t5/QlikView/Best-way-to-pull-data-in-from-the-same-table/m-p/563239#M694262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you considered using a QVD layer? That means, query your DB to retrieve table1 to table4, storing each in a qvd and then load the QVDs for your JOINs? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jul 2013 14:16:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Best-way-to-pull-data-in-from-the-same-table/m-p/563239#M694262</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-07-11T14:16:12Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to pull data in from the same table</title>
      <link>https://community.qlik.com/t5/QlikView/Best-way-to-pull-data-in-from-the-same-table/m-p/563240#M694263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use QVD's or Resident Load instead of direct data base loading&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Jul 2014 15:22:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Best-way-to-pull-data-in-from-the-same-table/m-p/563240#M694263</guid>
      <dc:creator />
      <dc:date>2014-07-27T15:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to pull data in from the same table</title>
      <link>https://community.qlik.com/t5/QlikView/Best-way-to-pull-data-in-from-the-same-table/m-p/563241#M694264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, I have seen the light and am intending to move to a 3-tier architecture. The more I develop and use QlikView, the better it gets &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 07:38:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Best-way-to-pull-data-in-from-the-same-table/m-p/563241#M694264</guid>
      <dc:creator>qliknerd</dc:creator>
      <dc:date>2014-07-28T07:38:04Z</dc:date>
    </item>
  </channel>
</rss>

