haoyi修改
This commit is contained in:
@@ -13,10 +13,10 @@
|
||||
----------------------------------------------------------------------------
|
||||
create or replace temporary view external_sales_union as
|
||||
select distinct
|
||||
PACK_COD,
|
||||
PACK_CODE as PACK_COD,
|
||||
DATA_SOURCE,
|
||||
PACK_FLAG,
|
||||
CORP_COD,
|
||||
CORP_CODE AS CORP_COD,
|
||||
SALES_VALUE_CAL,
|
||||
dept_name,
|
||||
new_code,
|
||||
@@ -2830,4 +2830,4 @@ left join (select CMPS_DES_C,DATA_SOURCE from base_table
|
||||
having count(distinct cmps_cod)>1
|
||||
) t3
|
||||
on t1.CMPS_DES_C = t3.CMPS_DES_C and t1.data_source = t3.data_source
|
||||
where t2.prod_des_c is not null or t3.cmps_des_c is not null
|
||||
where t2.prod_des_c is not null or t3.cmps_des_c is not null
|
||||
|
||||
Reference in New Issue
Block a user