Home > database > A laparoscope, usually connected to a case when and left the join
A laparoscope, usually connected to a case when and left the join
Time:09-26
Problem description: there are two tables, user_id, one is for all the users table t1, t2 said another part of the user table, I'd like to establish a temporary table The CREATE MULTISET TABLE TABLE AS ( * * SEL T1.* * , t2.The case when The FROM T1 Left the join t2 On t1. User_id=t3. User_id WHERE DEAL_DATE between cast (' 20170701 'as the date format' YYYYMMDD ') and cast (' $TX_DATE 'as the date format' YYYYMMDD ') ) WITH DATA PRIMARY INDEX (USER_ID); I was realized by casewhen judgment in the temporary table when pick up the table data by limiting conditions can choose from users of t1 and t2 user case here when don't know how to write,
CodePudding user response:
Also said in self-study HIVE, why not put the data processing in CASE the WHEN later? Don't know the right of say
CodePudding user response:
Don't put data processing later in CASE the WHEN? Don't know that's right,