SELECT A.*,B.SUM(VALUE_AMOUNT_MANAGE) FROM ( select COMPANY_NAME 公司名称, PROJECT_NAME 项目名称, SUM(SJQZ_AREA) 月度累计供货_面积, SUM(SJQZ_VALUE_1) 月度累计供货_全口径金额
from DAILY_SUPPLY where 1=1 --AND SUBSTR(SJQZ_TIME, 1, 6) = SUBSTR('${TIME}', 1, 6) GROUP BY COMPANY_NAME,PROJECT_NAME ) A LEFT JOIN ( select COMPANY_NAME 公司名称, PROJECT_NAME 项目名称, SUM(VALUE_AMOUNT_MANAGE) 月度供货目标_管理口径
from DAILY_SUPPLY where 1=1 --AND SUBSTR(YJQZ_TIME, 1, 6) = SUBSTR('${TIME}', 1, 6) GROUP BY COMPANY_NAME,PROJECT_NAME ) B ON A.COMPANY_NAME = B.COMPANY_NAME AND A.PROJECT_NAME = B.PROJECT_NAME 报错标识符无效,ORA-00904: "B"."PROJECT_NAME": 标识符无效。 这是啥原因啊 |