Skip to content
Advertisement

Hive nested query left join

I’am new to hive and i want to implement the following query

It works fine untill the last left join. Nested queries are obviously not authorized in hive.

How can i approach this.

Advertisement

Answer

Use sub-query instead of joined table:

Or better move last join condition inside the WHERE clause in the subquery:

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement