Is it possible to do an update on one table, with a selection across 2 tables, or does one first have to query a table, then iterate through the rows doing an update on the other table per line (which seems v inefficient)?
I want to say something like
UPDATE table1, table2 SET table1.val =...