Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SELECT t.*,
- DENSE_RANK() OVER(PARTITION BY u_a_id, column_name ORDER BY line_num, e_id) AS new_seq_id
- FROM tab t;
- update (SELECT t.*,
- DENSE_RANK() OVER(PARTITION BY u_a_id, column_name ORDER BY line_num, e_id) AS new_seq_id
- FROM tab t
- )
- set seq_id = new_seq_id;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement