<?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 How to combine two QVD in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-combine-two-QVD/m-p/753757#M662953</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have two QVD (Product_Price_History and Order_Product) Can I make a new QVD from the data in these two QVD, &lt;SPAN style="font-size: 13.3333330154419px;"&gt;as in SQL&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL&lt;/P&gt;&lt;P&gt;select op.*,(select price_purchase from `s_product_price_history` ph where op.`product_id`=ph.`product_id` and ph.`date_added`&amp;lt;op.`insert_date` order by ph.`date_added` desc limit 1)&amp;nbsp; as price_purchase &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; from `s_order_product` op &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; where op.`insert_date` &amp;gt;='2015-02-18 23:59:59'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Feb 2015 14:08:28 GMT</pubDate>
    <dc:creator>aytacbas</dc:creator>
    <dc:date>2015-02-19T14:08:28Z</dc:date>
    <item>
      <title>How to combine two QVD</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-combine-two-QVD/m-p/753757#M662953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have two QVD (Product_Price_History and Order_Product) Can I make a new QVD from the data in these two QVD, &lt;SPAN style="font-size: 13.3333330154419px;"&gt;as in SQL&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL&lt;/P&gt;&lt;P&gt;select op.*,(select price_purchase from `s_product_price_history` ph where op.`product_id`=ph.`product_id` and ph.`date_added`&amp;lt;op.`insert_date` order by ph.`date_added` desc limit 1)&amp;nbsp; as price_purchase &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; from `s_order_product` op &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; where op.`insert_date` &amp;gt;='2015-02-18 23:59:59'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Feb 2015 14:08:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-combine-two-QVD/m-p/753757#M662953</guid>
      <dc:creator>aytacbas</dc:creator>
      <dc:date>2015-02-19T14:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine two QVD</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-combine-two-QVD/m-p/753758#M662954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;NewQVD:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD * FROM S_ORDER_PRODUCT.QVD (QVD)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;WHERE INSERT_DATE &amp;gt;= '18/02/2015 23:59:59'; // Why load rows created in the last second of the previous day?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;MapPID2CD:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;MAPPING LOAD DISTINCT PRODUCT_ID, INSERT_DATE&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;RESIDENT NewQVD;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;History:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD * FROM S_PRODUCT_PRICE_HISTORY.QVD (QVD); // No GROUP BY on external tables...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LEFT JOIN (NewQVD)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD PRODUCT_ID,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FirstSortedValue(PRICE_PURCHASE, -DATE_ADDED) AS PRICE_PURCHASE&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;RESIDENT History&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;WHERE DATE_ADDED &amp;lt; applymap('MapPID2CD', PRODUCT_ID)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;GROUP BY PRODUCT_ID;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;STORE NewQVD INTO NewQVD.QVD (qvd);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;I'm assuming that you already took care of converting SQL dates into QlikView dates before creating the original QVD's.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Feb 2015 14:37:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-combine-two-QVD/m-p/753758#M662954</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-02-19T14:37:12Z</dc:date>
    </item>
  </channel>
</rss>

