I want to do a query like this, but mysql doesn't want to know...
SELECT size.sizes FROM size, details WHERE details.productID = (SELECT details.productID FROM product, details WHERE product.combocode = 5 AND product.productID = details.productID) AND (size.sizeID = details.sizeID)
the child query returns two varchar(9) productID's , because it return a table with two, would that be the problem?
If i remove the child query, and replace it with the fetched productID "QW118" it works fine.
Any help would be great, thanks, ben
MySQL said:
You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'SELECT details.productID
FROM product, details
WHERE product.co
SELECT size.sizes FROM size, details WHERE details.productID = (SELECT details.productID FROM product, details WHERE product.combocode = 5 AND product.productID = details.productID) AND (size.sizeID = details.sizeID)
the child query returns two varchar(9) productID's , because it return a table with two, would that be the problem?
If i remove the child query, and replace it with the fetched productID "QW118" it works fine.
Any help would be great, thanks, ben
MySQL said:
You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'SELECT details.productID
FROM product, details
WHERE product.co