I am trying to join two tables together using what they both have in common but I keep getting a particular column in not found and I can clearly see that the column is there.
Here is my script:
SELECT "productId", "unitId", SUM(quantity)
FROM consumable_pack_item INNER JOIN product ON consumable_pack_item.productId = product.id
GROUP BY "productId", "unitId";
Error:
ERROR: column consumable_pack_item.productid does not exist
LINE 2: FROM consumable_pack_item INNER JOIN product ON consumable_...
^
HINT: Perhaps you meant to reference the column "consumable_pack_item.productId".
SQL state: 42703
Character: 95