Dear friends I have three tables which are given belowMaterial_family Raw_Material RM_CostingMat_Category (PK) Mat_Category Item_Code(PK) Scrap_Rate RM_Code (PK) RM_Code (PK) Scrap_Wt Scrap_tot in rm costing table item_code and rm_code make a composite keyi want to upate the scrap_tot field in rm_Costing asscrap_tot=rm_Costing.scrap_Wt*MAterial_family.scrap_Ratemy query is given belowUPDATE rm_Costing SET scrap_total=(SELECT (rm_Costing.Scrap_wt* Material_Family.Scrap_Rate) as scrap_total_ValueFROMRaw_Material ,rm_Costing,Material_Familywhere Raw_Material.rM_Code = rm_Costing.RM_CodeandRaw_Material.MAt_Category = Material_Family.MAt_Category)
But Each time when i run this query, i get the error of more then one row returned. please help me to correct it.thanks in advanceshivpreet2k1