<?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>question Re: Is there an option to update a column in a table using values from another table in hive? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-an-option-to-update-a-column-in-a-table-using/m-p/127101#M18140</link>
    <description>&lt;P&gt;re-accepted so you can get points &lt;A rel="user" href="https://community.cloudera.com/users/2506/keerthanakumar20.html" nodeid="2506"&gt;@keerthana gajarajakumar&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 06 Feb 2016 01:45:36 GMT</pubDate>
    <dc:creator>aervits</dc:creator>
    <dc:date>2016-02-06T01:45:36Z</dc:date>
    <item>
      <title>Is there an option to update a column in a table using values from another table in hive?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-an-option-to-update-a-column-in-a-table-using/m-p/127096#M18135</link>
      <description>&lt;P&gt;I want to update the joining date column in table x which is currently messed up, by using the start date column in table y. The schema for both the tables are different however the common column is the id field. I'm unable to use update statement since I can't mention a sub query in the where clause. So I tried using the following and I'm unable to update the column : &lt;/P&gt;&lt;P&gt;insert into table x (joining_date) select min(start_date) from table y group by id;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2016 12:39:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-an-option-to-update-a-column-in-a-table-using/m-p/127096#M18135</guid>
      <dc:creator>keerthanakumar2</dc:creator>
      <dc:date>2016-02-05T12:39:09Z</dc:date>
    </item>
    <item>
      <title>Re: Is there an option to update a column in a table using values from another table in hive?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-an-option-to-update-a-column-in-a-table-using/m-p/127097#M18136</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2506/keerthanakumar20.html" nodeid="2506"&gt;@keerthana gajarajakumar&lt;/A&gt;&lt;/P&gt;&lt;P&gt;See this &lt;A target="_blank" href="https://cwiki.apache.org/confluence/display/Hive/LanguageManual+DML#LanguageManualDML-Update"&gt;https://cwiki.apache.org/confluence/display/Hive/LanguageManual+DML#LanguageManualDML-Update&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2016 12:55:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-an-option-to-update-a-column-in-a-table-using/m-p/127097#M18136</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2016-02-05T12:55:59Z</dc:date>
    </item>
    <item>
      <title>Re: Is there an option to update a column in a table using values from another table in hive?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-an-option-to-update-a-column-in-a-table-using/m-p/127098#M18137</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/140/nsabharwal.html" nodeid="140"&gt;@Neeraj Sabharwal&lt;/A&gt; -- Thanks. But I found a way to overwrite my table with the query results that joined the tables and did the necessary manipulation I needed. &lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2016 14:33:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-an-option-to-update-a-column-in-a-table-using/m-p/127098#M18137</guid>
      <dc:creator>keerthanakumar2</dc:creator>
      <dc:date>2016-02-05T14:33:47Z</dc:date>
    </item>
    <item>
      <title>Re: Is there an option to update a column in a table using values from another table in hive?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-an-option-to-update-a-column-in-a-table-using/m-p/127099#M18138</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2506/keerthanakumar20.html" nodeid="2506"&gt;@keerthana gajarajakumar&lt;/A&gt; please post your solution as answer so we could close this&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2016 19:40:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-an-option-to-update-a-column-in-a-table-using/m-p/127099#M18138</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-02-05T19:40:47Z</dc:date>
    </item>
    <item>
      <title>Re: Is there an option to update a column in a table using values from another table in hive?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-an-option-to-update-a-column-in-a-table-using/m-p/127100#M18139</link>
      <description>&lt;P&gt;I wrote a join query to display the results I wanted by combining values from both the tables 'x' and 'y' (Manipulated the tables with the columns I wanted to see in the final output for 'x') and then did an insert overwrite into table 'x'. While creating the table into which you would like to overwrite (in my case it was 'x'), just make sure to remove the line "TBLPROPERTIES ('transactional'='true');" so it doesn't conform to ACID properties, else you won't be able to overwrite! &lt;/P&gt;</description>
      <pubDate>Sat, 06 Feb 2016 00:47:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-an-option-to-update-a-column-in-a-table-using/m-p/127100#M18139</guid>
      <dc:creator>keerthanakumar2</dc:creator>
      <dc:date>2016-02-06T00:47:01Z</dc:date>
    </item>
    <item>
      <title>Re: Is there an option to update a column in a table using values from another table in hive?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-an-option-to-update-a-column-in-a-table-using/m-p/127101#M18140</link>
      <description>&lt;P&gt;re-accepted so you can get points &lt;A rel="user" href="https://community.cloudera.com/users/2506/keerthanakumar20.html" nodeid="2506"&gt;@keerthana gajarajakumar&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 06 Feb 2016 01:45:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-an-option-to-update-a-column-in-a-table-using/m-p/127101#M18140</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-02-06T01:45:36Z</dc:date>
    </item>
    <item>
      <title>Re: Is there an option to update a column in a table using values from another table in hive?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-an-option-to-update-a-column-in-a-table-using/m-p/127102#M18141</link>
      <description>&lt;P&gt;haha alright &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/P&gt;</description>
      <pubDate>Sat, 06 Feb 2016 03:55:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-an-option-to-update-a-column-in-a-table-using/m-p/127102#M18141</guid>
      <dc:creator>keerthanakumar2</dc:creator>
      <dc:date>2016-02-06T03:55:03Z</dc:date>
    </item>
  </channel>
</rss>

