halaloszto Creative Commons License 2016.07.14 0 2 5563

merge into B target using (select max(adat) adat, id from a where adat is not null group by id) source

on (target.id=source.id)

when matched then set target.adat=source.adat;

 

Előzmény: F1DO (5562)