DECLARE MY_CUR2 CURSOR SCROLL FOR
Select Col000, Col001, Col002 from CHQHO
ORDER BY Col000
OPEN MY_CUR2
FETCH LAST FROM MY_CUR2
FETCH RELATIVE -2 FROM MY_CUR2
WHILE @@FETCH_STATUS = 0
BEGIN
Update CHQHO Set Col002 = @campoY where current of MY_CUR2
FETCH NEXT FROM MY_CUR2
END
CLOSE MY_CUR2
DEALLOCATE MY_CUR2