I have the following query:
UPDATE PRODUCT SET FIXEDCOST =
(Select PRICE from PRODUCTPROGRAM
where productID = PRODUCTID) * .6
WHERE FAMILY = 'Services'
I need to update the PRODUCT table’s FIXEDCOST field with 60% of the value of Price in the PRODUCTPROGRAM table.
The tables are related by productID.
The error says that more than one is returned in the subquery. Any ideas as to how I could fix this? Thanks in advance for any help.
Tamer, you are getting too many results in the “select price from proudctprogram” you need narrow it down or do something like this:
Try that and let me know.
Marcelo