Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.14 KB | None | 0 0
  1. select t.*,
  2. row_number() over (partition by task_id order by col3) as position
  3. from t
  4. where task_id = 6 and status = 'ACTIVE';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement