一个稍微复杂点的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
相关文章
相关标签/搜索