Hello,
I want to update columns in a table that match a fixed key
from the same column of the same table matching another fixed key.
There can be several tuples per key distinguished by a secondary id.
Tuples are unique with the combined keys. Maybe a query could look
something like this:
UPDATE a.mytable from b.mytableSET a.mycolumn = b.mycolumnWHERE a.firstid = some_keyAND b.firstid = some_other_keyAND
a.secondaryid= b.secondaryid;
But it's a syntax error. I tried a subselect but i'm failing to connect
the subselect's 2nd ID with the update's 2nd ID. Any help ? Thanks,
Jürgen