I am trying to update a table, but I can't get my syntax to work. I added new elements from a temp table to my element table and I want to update column_name in metadata_attribute and table_name in metadata_table table. This is what I have:
UPDATE METADATA_ATTRIBUTE
SET C.ELEMENT_ID = (SELECT ELEMENT_ID
FROM ELEMENT A , TEMP B
WHERE A.ELEMENT_NAME = B.WMIS_COLUMN_NAME)
FROM ELEMENT A, TEMP B, METADATA_ATTRIBUTE C, METADATA_TABLE D
WHERE C.COLUMN_NAME = B.WMIS_COLUMN_NAME
AND D.TABLE_NAME = B.WMIS_TABLE_NAME
AND ELEMENT_ID IS NULL;