0
Ok, but the column "item_cnt" does not exist in the tables, then what column is it serving as an alias?
The column item_cnt may not exist in the base tables (we believe you, we didn't go and search the linked documents.)
But this part of the code:
FROM
(SELECT product_id, COUNT (*) i...