<?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: Replace data in source table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Replace-data-in-source-table/m-p/791441#M279849</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;with only one sql query:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;DATA:LOAD &lt;/STRONG&gt;&lt;STRONG style="font-family: inherit; line-height: 1.5em; font-style: inherit;"&gt;*;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;SQL SELECT &lt;/STRONG&gt;&lt;SPAN style="color: #575757; font-family: arial, helvetica, sans-serif; font-size: 10pt; line-height: 1.5em;"&gt;x.Cust as Cust,x.Prod as Prod,x.Type as Type,y.Price&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;from Table1 x,Table2 y&lt;/P&gt;&lt;P&gt;where x.cust=y.cust and x.Prod=y.Prod and x.Type=y.Type&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;union all&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-style: inherit;"&gt;SELECT&lt;/STRONG&gt; x.Cust as Cust,x.Prod as Prod,x.Type as Type,y.Price&lt;/P&gt;&lt;P&gt;from Table1 x where not exists(select * from Table2 y&lt;/P&gt;&lt;P&gt;where x.cust=y.cust and x.Prod=y.Prod and and x.Type=y.Type)&lt;/P&gt;&lt;P&gt;order by x.Cust,x.Prod,x.Type;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Feb 2015 04:39:10 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-02-26T04:39:10Z</dc:date>
    <item>
      <title>Replace data in source table</title>
      <link>https://community.qlik.com/t5/QlikView/Replace-data-in-source-table/m-p/791439#M279847</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;I have two tables and one is source data and another one is revised. I want to replace the source data with the revised data. Can any one suggest me a data model for this scenario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/79283_Capture.PNG" style="height: 262px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample data attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, Is it possible to show the source records which are not available in revised table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tamil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2015 02:09:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replace-data-in-source-table/m-p/791439#M279847</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2015-02-26T02:09:04Z</dc:date>
    </item>
    <item>
      <title>Re: Replace data in source table</title>
      <link>https://community.qlik.com/t5/QlikView/Replace-data-in-source-table/m-p/791440#M279848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;FROM Table2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate(Data)&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;FROM Table1&lt;/P&gt;&lt;P&gt;WHERE Not Exists(Cust);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2015 03:15:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replace-data-in-source-table/m-p/791440#M279848</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2015-02-26T03:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: Replace data in source table</title>
      <link>https://community.qlik.com/t5/QlikView/Replace-data-in-source-table/m-p/791441#M279849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;with only one sql query:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;DATA:LOAD &lt;/STRONG&gt;&lt;STRONG style="font-family: inherit; line-height: 1.5em; font-style: inherit;"&gt;*;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;SQL SELECT &lt;/STRONG&gt;&lt;SPAN style="color: #575757; font-family: arial, helvetica, sans-serif; font-size: 10pt; line-height: 1.5em;"&gt;x.Cust as Cust,x.Prod as Prod,x.Type as Type,y.Price&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;from Table1 x,Table2 y&lt;/P&gt;&lt;P&gt;where x.cust=y.cust and x.Prod=y.Prod and x.Type=y.Type&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;union all&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-style: inherit;"&gt;SELECT&lt;/STRONG&gt; x.Cust as Cust,x.Prod as Prod,x.Type as Type,y.Price&lt;/P&gt;&lt;P&gt;from Table1 x where not exists(select * from Table2 y&lt;/P&gt;&lt;P&gt;where x.cust=y.cust and x.Prod=y.Prod and and x.Type=y.Type)&lt;/P&gt;&lt;P&gt;order by x.Cust,x.Prod,x.Type;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2015 04:39:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replace-data-in-source-table/m-p/791441#M279849</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-26T04:39:10Z</dc:date>
    </item>
    <item>
      <title>Re: Replace data in source table</title>
      <link>https://community.qlik.com/t5/QlikView/Replace-data-in-source-table/m-p/791442#M279850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi try Applymap from second table to first table, and use if condition, if matches then applymap result else use the same result from A table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"if(table1.key=table2.key, applymap( from table 2 to table 1 to get price), table1.price)as price " in table 3 price column.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2015 05:23:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replace-data-in-source-table/m-p/791442#M279850</guid>
      <dc:creator>vinay_hg</dc:creator>
      <dc:date>2015-02-26T05:23:27Z</dc:date>
    </item>
    <item>
      <title>Re: Replace data in source table</title>
      <link>https://community.qlik.com/t5/QlikView/Replace-data-in-source-table/m-p/791443#M279851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Jagan, Antonio and Vinaykumar. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2015 05:57:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replace-data-in-source-table/m-p/791443#M279851</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2015-02-26T05:57:21Z</dc:date>
    </item>
  </channel>
</rss>

