Cursor and updating same records inside cursor