Hi All,
I'm really stumped on this one, and am a newbie, which may be the reason. PLease take a look at this code.
I receive the error:
"Unknown table or correlation name [IMITMIDX] in select list"
SELECT "IMITMIDX"."ITEM_NO","IMINVLOC"."LOCATION","IMITMIDX"."DESCRIPTION_1","IMINVLOC"."STATUS","IMINVLOC"."INVENTORY_CLASS",
"IMINVLOC"."PRICE","IMINVLOC"."SALE_PRICE","IMINVLOC"."AVERAGE_COST","IMINVLOC"."LAST_COST","IMINVLOC"."STD_COST",
"IMINVLOC"."QTY_ON_HAND","IMITMIDX"."UNIT_OF_MEASURE","IMITMIDX"."PUR_UNIT_OF_MEASURE","IMITMIDX"."MFG_UOM",
"IMITMIDX"."ITEM_WEIGHT_UOM","IMITMIDX"."ITEM_WEIGHT","IMITMIDX"."PRODUCT_CATEGORY","IMITMIDX"."PART_CATEGORY",
"IMITMIDX"."USER_DEFINED_CODE","IMITMIDX"."MAT_TYPE","IMITMIDX"."DEFAULT_LOCATION", "IMINVTRX"."SOURCE",
"IMINVTRX"."QUANTITY","IMINVTRX"."OLD_QUANTITY", "IMINVTRX"."POST_DATE"
FROM "IMITMIDX" aa LEFT OUTER JOIN "IMINVLOC" bb ON ("IMITMIDX"."ITEM_NO" = "IMINVLOC"."ITEM_NO" LEFT OUTER JOIN "IMINVTRX" cc ON ("IMINVLOC"."ITEM_NO" = "IMINVTRX"."ITEM_NO"
AND "IMINVLOC"."LOCATION" = "IMINVTRX"."LOCATION"
WHERE "cc"."POST_DATE"
IN
(SELECT MAX("IMINVTRX"."POST_DATE"
FROM "IMITMIDX" xx LEFT OUTER JOIN "IMINVLOC" yy ON ("IMITMIDX"."ITEM_NO" = "IMINVLOC"."ITEM_NO" LEFT OUTER JOIN "IMINVTRX" zz ON ("IMINVLOC"."ITEM_NO" = "IMINVTRX"."ITEM_NO"
AND "IMINVLOC"."LOCATION" = "IMINVTRX"."LOCATION"
WHERE ("aa"."ITEM_NO" = "IMINVTRX"."ITEM_NO"
)
GROUP BY "IMITMIDX"."ITEM_NO","IMINVLOC"."LOCATION","IMITMIDX"."DESCRIPTION_1","IMINVLOC"."STATUS","IMINVLOC"."INVENTORY_CLASS",
"IMINVLOC"."PRICE","IMINVLOC"."SALE_PRICE","IMINVLOC"."AVERAGE_COST","IMINVLOC"."LAST_COST","IMINVLOC"."STD_COST",
"IMINVLOC"."QTY_ON_HAND","IMITMIDX"."UNIT_OF_MEASURE","IMITMIDX"."PUR_UNIT_OF_MEASURE","IMITMIDX"."MFG_UOM",
"IMITMIDX"."ITEM_WEIGHT_UOM","IMITMIDX"."ITEM_WEIGHT","IMITMIDX"."PRODUCT_CATEGORY","IMITMIDX"."PART_CATEGORY",
"IMITMIDX"."USER_DEFINED_CODE","IMITMIDX"."MAT_TYPE","IMITMIDX"."DEFAULT_LOCATION","IMINVTRX"."SOURCE", "IMINVTRX"."QUANTITY","IMINVTRX"."OLD_QUANTITY"
I'm really stumped on this one, and am a newbie, which may be the reason. PLease take a look at this code.
I receive the error:
"Unknown table or correlation name [IMITMIDX] in select list"
SELECT "IMITMIDX"."ITEM_NO","IMINVLOC"."LOCATION","IMITMIDX"."DESCRIPTION_1","IMINVLOC"."STATUS","IMINVLOC"."INVENTORY_CLASS",
"IMINVLOC"."PRICE","IMINVLOC"."SALE_PRICE","IMINVLOC"."AVERAGE_COST","IMINVLOC"."LAST_COST","IMINVLOC"."STD_COST",
"IMINVLOC"."QTY_ON_HAND","IMITMIDX"."UNIT_OF_MEASURE","IMITMIDX"."PUR_UNIT_OF_MEASURE","IMITMIDX"."MFG_UOM",
"IMITMIDX"."ITEM_WEIGHT_UOM","IMITMIDX"."ITEM_WEIGHT","IMITMIDX"."PRODUCT_CATEGORY","IMITMIDX"."PART_CATEGORY",
"IMITMIDX"."USER_DEFINED_CODE","IMITMIDX"."MAT_TYPE","IMITMIDX"."DEFAULT_LOCATION", "IMINVTRX"."SOURCE",
"IMINVTRX"."QUANTITY","IMINVTRX"."OLD_QUANTITY", "IMINVTRX"."POST_DATE"
FROM "IMITMIDX" aa LEFT OUTER JOIN "IMINVLOC" bb ON ("IMITMIDX"."ITEM_NO" = "IMINVLOC"."ITEM_NO" LEFT OUTER JOIN "IMINVTRX" cc ON ("IMINVLOC"."ITEM_NO" = "IMINVTRX"."ITEM_NO"
AND "IMINVLOC"."LOCATION" = "IMINVTRX"."LOCATION"
WHERE "cc"."POST_DATE"
IN
(SELECT MAX("IMINVTRX"."POST_DATE"
FROM "IMITMIDX" xx LEFT OUTER JOIN "IMINVLOC" yy ON ("IMITMIDX"."ITEM_NO" = "IMINVLOC"."ITEM_NO" LEFT OUTER JOIN "IMINVTRX" zz ON ("IMINVLOC"."ITEM_NO" = "IMINVTRX"."ITEM_NO"
AND "IMINVLOC"."LOCATION" = "IMINVTRX"."LOCATION"
WHERE ("aa"."ITEM_NO" = "IMINVTRX"."ITEM_NO"
)
GROUP BY "IMITMIDX"."ITEM_NO","IMINVLOC"."LOCATION","IMITMIDX"."DESCRIPTION_1","IMINVLOC"."STATUS","IMINVLOC"."INVENTORY_CLASS",
"IMINVLOC"."PRICE","IMINVLOC"."SALE_PRICE","IMINVLOC"."AVERAGE_COST","IMINVLOC"."LAST_COST","IMINVLOC"."STD_COST",
"IMINVLOC"."QTY_ON_HAND","IMITMIDX"."UNIT_OF_MEASURE","IMITMIDX"."PUR_UNIT_OF_MEASURE","IMITMIDX"."MFG_UOM",
"IMITMIDX"."ITEM_WEIGHT_UOM","IMITMIDX"."ITEM_WEIGHT","IMITMIDX"."PRODUCT_CATEGORY","IMITMIDX"."PART_CATEGORY",
"IMITMIDX"."USER_DEFINED_CODE","IMITMIDX"."MAT_TYPE","IMITMIDX"."DEFAULT_LOCATION","IMINVTRX"."SOURCE", "IMINVTRX"."QUANTITY","IMINVTRX"."OLD_QUANTITY"