I have two Tables Employee_Data and IOT_Codes_Temp, I want to Update the records of Employee_Data.IOT_Codes with IOT_Codes_Temp.IOT_Codes. Below is my Query:
UPDATE employee_data t1 
SET    ( t1.iot_codes, t1.iot_codes_numeric ) = (SELECT t2.iot_code, 
                                                        t2.iot_code_numeric 
                                                 FROM   ot_codes_temp t2 
                                                 WHERE 
       t2.office = t1.department); 
But it returns Error message: ORA-01427: single-row subquery returns more than one row. Help me how to get rid of this error.
 
     
     
     
    