Both left and right aliases encountered in Hive JOIN; without any inequality clause

前端 未结 3 1051
鱼传尺愫
鱼传尺愫 2021-02-13 20:37

I am using following query:

Select
   S.MDSE_ITEM_I,
   S.CO_LOC_I,
   MAX(S.SLS_D) as MAX_SLS_D,
   MIN(S.SLS_D) as MIN_SLS_D,
   sum(S.SLS_UNIT_Q) as SLS_UNIT_         


        
3条回答
  •  借酒劲吻你
    2021-02-13 21:15

    The problem I see with this approach is that, because there is a left outer join, that means we want to have all registers from left table just once, if we move the conditions to where clause, then those registeres where right table columns are null are lost.

提交回复
热议问题