<?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: oracle move in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/oracle-move/m-p/953206#M958462</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;basically I need to move the lines not copy.. any other suggestions&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Nov 2015 13:03:04 GMT</pubDate>
    <dc:creator>raadwiptec</dc:creator>
    <dc:date>2015-11-06T13:03:04Z</dc:date>
    <item>
      <title>oracle move</title>
      <link>https://community.qlik.com/t5/QlikView/oracle-move/m-p/953204#M958460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my scenario.I have 2 tables with the same below structure. everymonth I receive a file to load this custtotnew table. But before loading the custtotnew table I need to check whether if the the same customer is ordering again . if the customer matching then I need to move first the existing data&amp;nbsp; from the custtotnew table to custtotold table, then refresh the custtotnew table with the latest file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;custtotalold&lt;/P&gt;&lt;P&gt;custtotnew&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Customerid ¦ custname ¦ product¦year¦month¦quantity&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1¦ abc¦ cpppp¦2015¦01¦100&lt;/P&gt;&lt;P&gt;2¦ bec¦ pqyert¦2015¦02¦200&lt;/P&gt;&lt;P&gt;3¦ lmp¦ lmkkjs¦2015¦03¦000&lt;/P&gt;&lt;P&gt;4¦ raj¦ kkkjsdd¦2015¦04¦10&lt;/P&gt;&lt;P&gt;5¦ ras¦ cppsds¦2015¦05¦14&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2015 11:58:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/oracle-move/m-p/953204#M958460</guid>
      <dc:creator>raadwiptec</dc:creator>
      <dc:date>2015-11-06T11:58:50Z</dc:date>
    </item>
    <item>
      <title>Re: oracle move</title>
      <link>https://community.qlik.com/t5/QlikView/oracle-move/m-p/953205#M958461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something like this might work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//first off load all existing customer id's&lt;/P&gt;&lt;P&gt;CustTotNewToMove:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Customerid as Customeridtomove&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;custtotnew.qvd (qvd)&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;//then work out which we have new records for&lt;/P&gt;&lt;P&gt;INNER JOIN (CustTotNewToMove)&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Customerid as Customeridtomove&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[your new data file]&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//then load existing custtotold records&lt;/P&gt;&lt;P&gt;CustTotOld:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; *&lt;/P&gt;&lt;P&gt;FROM custtotold.qvd (qvd)&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;//and append those from custtotnew where we have new records&lt;/P&gt;&lt;P&gt;CONCATENATE (CustTotOld)&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; *&lt;/P&gt;&lt;P&gt;FROM custtotnew.qvd (qvd)&lt;/P&gt;&lt;P&gt;WHERE EXISTS (Customeridtomove, Customerid)&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;//and store, and drop&lt;/P&gt;&lt;P&gt;STORE CustTotOld;&lt;/P&gt;&lt;P&gt;DROP TABLE CustTotOld;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//then load new data&lt;/P&gt;&lt;P&gt;CustTotNew:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; *&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[your new data file]&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//and append custtotnew records where we don't have new data&lt;/P&gt;&lt;P&gt;CONCATENATE (CustTotNew)&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; *&lt;/P&gt;&lt;P&gt;FROM custtotnew.qvd (qvd)&lt;/P&gt;&lt;P&gt;WHERE NOT Exists (Customerid);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2015 12:17:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/oracle-move/m-p/953205#M958461</guid>
      <dc:creator>marcus_malinow</dc:creator>
      <dc:date>2015-11-06T12:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: oracle move</title>
      <link>https://community.qlik.com/t5/QlikView/oracle-move/m-p/953206#M958462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;basically I need to move the lines not copy.. any other suggestions&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2015 13:03:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/oracle-move/m-p/953206#M958462</guid>
      <dc:creator>raadwiptec</dc:creator>
      <dc:date>2015-11-06T13:03:04Z</dc:date>
    </item>
    <item>
      <title>Re: oracle move</title>
      <link>https://community.qlik.com/t5/QlikView/oracle-move/m-p/953207#M958463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok and that's what my code above would do.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2015 13:06:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/oracle-move/m-p/953207#M958463</guid>
      <dc:creator>marcus_malinow</dc:creator>
      <dc:date>2015-11-06T13:06:39Z</dc:date>
    </item>
  </channel>
</rss>

