Skip to content
Advertisement

SQL Subquery using where condition

Sorry for my bad english.

I want to get HIDESC from M6HI based on HI.HIRECO = RE.RECODE and RE.RECODE is loop from M5RE.

Anyone know how to fix it?

Advertisement

Answer

A Common Table Expression may help you break this down a bit.

HiveQL supports CTE’s. Documentation is here:
https://cwiki.apache.org/confluence/display/Hive/Common+Table+Expression

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