maybe ...
Might be a little quicker, if id is indexed and sal isn't.Code:update xyz x set sal = ( select sal from xyz y where y.id!=x.id and y.name = x.name) where sal is null /
|
Results 1 to 5 of 5
Thread: Simple updateThreaded View
|
Click Here to Expand Forum to Full Width |