I want to write result to single table by selecting columns from multiple tables. I want to achieve something like below in hive.
SELECT Table0.num,Table1.field1, Table2.field2, Table3.field3, Table4.field4
FROM Table0
FULL OUTER JOIN Table1 ON Table0.num = Table1.num
FULL OUTER JOIN Table2 ON Table0.num = Table2.num
FULL OUTER JOIN Table3 ON Table0.num = Table3.num
FULL OUTER JOIN Table4 ON Table0.num = Table4.num
Please suggest how should I achieve this in hive?
When I am trying to execute above query in hive I am getting following exception.
FAILED: ParseException line 2:11 cannot recognize input near '' 'on' 'Table0' in select expression