<?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: Is there any way to use OUTER UNION CORR in hive sql? in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Is-there-any-way-to-use-OUTER-UNION-CORR-in-hive-sql/m-p/658238#M36220</link>
    <description>&lt;P&gt;Can't you just create a common column in your select statement?&lt;/P&gt;
&lt;PRE&gt;  select cl1, cl2, cl3 as cl_common
  from  tb1
  UNION ALL
  select cl1, cl2, cl4 as cl_common
  from tbl2
...and so on&lt;/PRE&gt;
&lt;P&gt;Make sure you use the ALL keyword unless you also want to dedup the result set.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 13 Jun 2020 03:42:51 GMT</pubDate>
    <dc:creator>Patrick</dc:creator>
    <dc:date>2020-06-13T03:42:51Z</dc:date>
    <item>
      <title>Is there any way to use OUTER UNION CORR in hive sql?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Is-there-any-way-to-use-OUTER-UNION-CORR-in-hive-sql/m-p/658068#M36218</link>
      <description>&lt;P&gt;I am trying to create table from four tables by using UNION logic, but all the tables have one column different.&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC SQL;&lt;/P&gt;&lt;P&gt;create table output_table&lt;/P&gt;&lt;P&gt;select cl1, cl2, cl3 from&amp;nbsp; tb1&lt;/P&gt;&lt;P&gt;OUTER UNION CORR&lt;/P&gt;&lt;P&gt;select cl1, cl2, cl4 from tbl2&lt;/P&gt;&lt;P&gt;OUTER UNION CORR&lt;/P&gt;&lt;P&gt;select cl1,cl2, cl5 from tbl3&lt;/P&gt;&lt;P&gt;OUTER UNION CORR&lt;/P&gt;&lt;P&gt;select cl1, cl2, cl6 from tbl4;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;on this query the output table contains all columns (cl1,cl2,cl3,cl4,cl5,cl6).&amp;nbsp;&lt;/P&gt;&lt;P&gt;So my question is is there any way to get the whole column in Hive SQL please.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;create table output_table&lt;/P&gt;&lt;P&gt;select cl1, cl2, cl3 from&amp;nbsp; tb1&lt;/P&gt;&lt;P&gt;UNION ALL&lt;/P&gt;&lt;P&gt;select cl1, cl2, cl4 from tbl2&lt;/P&gt;&lt;P&gt;UNION ALL&lt;/P&gt;&lt;P&gt;select cl1,cl2, cl5 from tbl3&lt;/P&gt;&lt;P&gt;UNION ALL&lt;/P&gt;&lt;P&gt;select cl1, cl2, cl6 from tbl4;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IF i use like this the columns on the output table contains only from the first table. (cl1,cl2,cl3)&lt;/P&gt;&lt;P&gt;But I need to get all columns on&amp;nbsp; my output.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jun 2020 14:07:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Is-there-any-way-to-use-OUTER-UNION-CORR-in-hive-sql/m-p/658068#M36218</guid>
      <dc:creator>ahmed_00</dc:creator>
      <dc:date>2020-06-12T14:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any way to use OUTER UNION CORR in hive sql?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Is-there-any-way-to-use-OUTER-UNION-CORR-in-hive-sql/m-p/658234#M36219</link>
      <description>&lt;P&gt;What do you mean by "&lt;SPAN&gt;So my question is is there any way to get the whole column in Hive SQL please"?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 13 Jun 2020 03:10:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Is-there-any-way-to-use-OUTER-UNION-CORR-in-hive-sql/m-p/658234#M36219</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2020-06-13T03:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any way to use OUTER UNION CORR in hive sql?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Is-there-any-way-to-use-OUTER-UNION-CORR-in-hive-sql/m-p/658238#M36220</link>
      <description>&lt;P&gt;Can't you just create a common column in your select statement?&lt;/P&gt;
&lt;PRE&gt;  select cl1, cl2, cl3 as cl_common
  from  tb1
  UNION ALL
  select cl1, cl2, cl4 as cl_common
  from tbl2
...and so on&lt;/PRE&gt;
&lt;P&gt;Make sure you use the ALL keyword unless you also want to dedup the result set.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 13 Jun 2020 03:42:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Is-there-any-way-to-use-OUTER-UNION-CORR-in-hive-sql/m-p/658238#M36220</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2020-06-13T03:42:51Z</dc:date>
    </item>
  </channel>
</rss>

