My Query returns this error ORA-01427: single-row subquery returns more than one row update, This is my query
Update Table_b B
Set B.Material_Desc = (Select A.Material_Desc From Table_a A Where A.PartNo = B.PartNo)
I have two different tables : Table_a
and Table_b
, both have same columns PartNo
and Material_Desc
. I want the Material_Desc
in Table_b
to update the Material_Desc
in Table_a
when PartNo
are equals.
The above query returns the ORA-01427 error, Please can anyone correct my query ?