hive多行转多列

1、需求 须要将多行的数据,按照某个维度转换为一行。 转换前: 转换后: db_price : area_name 为 东北 的total_price_actual; db_qty : area_name 为 东北 的qty。web 2、解决方案: 一、SQLsvg select brand, max(case when area_name='东北' then total_price_actu
相关文章
相关标签/搜索