Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- select t.*,
- row_number() over (partition by task_id order by col3) as position
- from t
- where task_id = 6 and status = 'ACTIVE';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement