<?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 Update table in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/update-table/m-p/3991758#M755664</link>
    <description>Dear All,&lt;BR /&gt;&lt;BR /&gt;I have a staging table called dept_management_stage which I have used SQL*LOADER to update the table this comprises of the following columns:&lt;BR /&gt;&lt;BR /&gt;DEPT_ID&lt;BR /&gt;DEPT_NAME&lt;BR /&gt;START_DATE&lt;BR /&gt;END_DATE&lt;BR /&gt;COST_CENTER&lt;BR /&gt;&lt;BR /&gt;What i want to do now is update dept_management from staging and seem to be not making progress. What I am trying to do is use  'update dept_management set dept_management = (select )' but can't seem to get the syntax to work could anyone help.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Angus</description>
    <pubDate>Tue, 01 May 2007 09:32:10 GMT</pubDate>
    <dc:creator>Avoiding the Red Zone</dc:creator>
    <dc:date>2007-05-01T09:32:10Z</dc:date>
    <item>
      <title>Update table</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/update-table/m-p/3991758#M755664</link>
      <description>Dear All,&lt;BR /&gt;&lt;BR /&gt;I have a staging table called dept_management_stage which I have used SQL*LOADER to update the table this comprises of the following columns:&lt;BR /&gt;&lt;BR /&gt;DEPT_ID&lt;BR /&gt;DEPT_NAME&lt;BR /&gt;START_DATE&lt;BR /&gt;END_DATE&lt;BR /&gt;COST_CENTER&lt;BR /&gt;&lt;BR /&gt;What i want to do now is update dept_management from staging and seem to be not making progress. What I am trying to do is use  'update dept_management set dept_management = (select )' but can't seem to get the syntax to work could anyone help.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Angus</description>
      <pubDate>Tue, 01 May 2007 09:32:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/update-table/m-p/3991758#M755664</guid>
      <dc:creator>Avoiding the Red Zone</dc:creator>
      <dc:date>2007-05-01T09:32:10Z</dc:date>
    </item>
    <item>
      <title>Re: Update table</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/update-table/m-p/3991759#M755665</link>
      <description>&lt;!--!*#--&gt;Column name in UPDATE stmt. is same as table name. Change that to:&lt;BR /&gt;&lt;BR /&gt;update dept_management&lt;BR /&gt;   set DEPT_ID = (&lt;BR /&gt;       select dept_id&lt;BR /&gt;         from dept_management_stage)&lt;BR /&gt;/</description>
      <pubDate>Tue, 01 May 2007 09:54:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/update-table/m-p/3991759#M755665</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2007-05-01T09:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: Update table</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/update-table/m-p/3991760#M755666</link>
      <description>&lt;!--!*#--&gt;Hi Angus,&lt;BR /&gt;&lt;BR /&gt;Something like...&lt;BR /&gt;&lt;BR /&gt;UPDATE dept_management dm&lt;BR /&gt;SET (dept_id, dept_name, start_date, end_date, cost_center) =&lt;BR /&gt;  (&lt;BR /&gt;    SELECT dept_id, dept_name, start_date, end_date, cost_center&lt;BR /&gt;    FROM dept_management_stage dms&lt;BR /&gt;    WHERE dms.dept_id = dm.dept_id&lt;BR /&gt;  );&lt;BR /&gt;&lt;BR /&gt;?&lt;BR /&gt;  &lt;BR /&gt;PCS</description>
      <pubDate>Tue, 01 May 2007 10:09:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/update-table/m-p/3991760#M755666</guid>
      <dc:creator>spex</dc:creator>
      <dc:date>2007-05-01T10:09:32Z</dc:date>
    </item>
  </channel>
</rss>

