Hi everyone,
Let's say I want to update a table based on a join with another table. In SQL Server, this is easy. I can just write my update query this way:
UPDATE upt
SET upt.name = s.lastname, upt.address = s.street
FROM clients upt
INNER JOIN census s ON upt.social = s.ssn AND upt.zip = s.zipcode
In this SQL Server example, everything in the "clients" table updates fine, and the tables are joined on two values.
This is so simple, but I have no idea how to do this in Oracle PL SQL?
Thanks in advance!
Let's say I want to update a table based on a join with another table. In SQL Server, this is easy. I can just write my update query this way:
UPDATE upt
SET upt.name = s.lastname, upt.address = s.street
FROM clients upt
INNER JOIN census s ON upt.social = s.ssn AND upt.zip = s.zipcode
In this SQL Server example, everything in the "clients" table updates fine, and the tables are joined on two values.
This is so simple, but I have no idea how to do this in Oracle PL SQL?
Thanks in advance!
Comment