So I have TABLE_ONE with two columns...ID and EXPIRE_DATE
and TABLE_TWO with the same two columns except the EXPIRE_DATE has a dummy value and needs to be populated from the first table.
I need to grab the most recent EXPIRE_DATE (latest date not last added) for a given ID from TABLE_ONE and populate all occurences of that ID in TABLE_TWO with that EXPIRE_DATE.
I guess it's clear that ID is not the PK in either table. It recurs.
How would I write this UPDATE of TABLE_TWO?
Thanks!