SELECT A.VA_REGION_NAME AS AREA_NAME, A.VA_CIG_TRADEMARK AS CIG_NM, B.DE_BS_CXB AS CXB_REL, A.DE_BS_CXB_PRE AS CXB_PRE
FROM DCDW.FAC_SCC_ZY_REGION_CXB_PRE A
LEFT JOIN DCDW.FAC_SCC_ZY_REGION_CXB B
ON B.VA_CIG_TRADEMARK = A.VA_CIG_TRADEMARK AND A.VA_REGION_CODE = B.REGION_CODE
LEFT JOIN DIM_REGION C
ON A.VA_REGION_CODE = B.REGION_CODE = C.PROV_CODE OR A.VA_REGION_CODE = B.REGION_CODE = C.AREA_CODE
DB2中执行SQL语句,一直报错在 "CODE = B.REGION_CODE" 后面找到异常标记 "= C".
检查没有没错,求大神告知一下
弑天下
相关分类