当我执行下面的查询时,它会出现错误,就像"ORA-00904: "R"."MEASURE": invalid identifier"
我认为查询没有错一样。但我找不到问题。你能帮我吗...谢谢。
SELECT DISTINCT 0 ROW_ID, Division , Outlet , Class , Package , Type , Measure
FROM NEW_OUTLET_TOTAL_PLAN_2013 S
WHERE NOT EXISTS
(SELECT 1
FROM TEMP_BWXROW3 R
WHERE
R.Division = S.Division AND
R.Outlet = S.Outlet AND
R.Class = S.Class AND
R.Package = S.Package AND
r.type = s.type and
R.Measure = S.Measure );