早上好!
我正在尝试将材料(MATNR)从MARC表内连接到RESB表,但是我总是在RESB上收到“无效标识符”错误。
出现错误的行:
"MARC"."MATNR" = "RESB"."MATNR" AND
这是完整的代码:
select
"RESB"."MATNR" as "Material",
"RESB"."BDMNG" as "Quantidade",
"RESB"."MEINS" as "Unit",
"RESB"."BDTER" as "Data da reserva",
"RESB"."RSNUM" as "Reserva",
"RESB"."RSPOS" as "Item da Reserva",
"RESB"."AUFNR" as "Ordem",
"RESB"."WERKS" as "Centro"
from "RBT_SLT_ECC"."RESB"
union
select
"MSEG"."DMBTR" as "Custo"
from "RBT_SLT_ECC"."MSEG"
inner join
"RBT_SLT_ECC"."MARC" on
"MARC"."MATNR" = "RESB"."MATNR" AND
"MARC"."WERKS" = "RESB"."WERKS"
where
"RESB"."WERKS" in ('1402')
order by
"RESB"."BDTER" DESC
感谢您的帮助!