I have tried everything I can think of but couldn\'t solve this SQL error:
SQL Error: ORA-00933: SQL command not properly ended
UPDATE SALES_DATA_FAMILY_2007 A SET A.POG_ID= (select B.POG_ID FROM POG_HIERARCHY B WHERE A.FAMILY_ID=B.FAMILY) WHERE A.POG_ID IN (SELECT C.POG_ID FROM POG_HIERARCHY C WHERE A.FAMILY_ID = C.FAMILY);