一個稍微複雜點的hive sql

with abc as ( select substring(a.pay_time,1,10) dt, ((if(oobi_consume>0,(oobi_consume*1.00/100), 0))+ (if(giftcard_consume>0,(giftcard_consume*1.00/100), 0))) pay_fee, a.xxx_id as uid from order_all
相關文章
相關標籤/搜索