hey everyone I have two different tables:
PS(size(primary key), price) Sales(....size,quantity, total_Price)
I tried to execute this statement:
update Sales
set total_Price = (select price from PS, Sales
where Sales.size = PS.size )*Quantity;
but i get this error always
SQL0811N The result of a scalar fullselect, SELECT INTO statement, or VALUES INTO statement is more than one row.
I know that the error is because the sub query i used in the select statement returns more than one row, that's why i can't work. Can someone please help me solve this problem.