A nested select in the where clause, update table1 set column1= 'Canceled' where table1.id in (select table1.id from table1, table2 where table1.id=table2.id) ````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````` ````````````````````````````````````````````
UPDATE [schema.]{table | view | subquery}[@dblink] SET { (column [, column] ...) = (subquery) | column = { expr | (subquery) } } [, { (column [, column] ...) = (subquery) | column = { expr | (subquery) } } ] ... [WHERE condition] ````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````` `````````````````````````````````````````````