Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
SQL> select id , row_number() over(order by id) as row_number, rank() over(order by id) as rank,dense_rank() over (order by id) as dense_rank from a;
ID ROW_NUMBER RANK DENSE_RANK---------- ---------- ---------- ----------1 1 1 11 2 1 12 3 3 23 4 4 33 5 4 34 6 6 44 7 6 45 8 8 56 9 9 67 10 10 7
@dshunkal99 ,check below links,
Rank
https://community.talend.com/t5/Design-and-Development/how-to-generate-rank/td-p/24991
Dense rank
https://community.talend.com/t5/Design-and-Development/Dense-Rank-function-in-talend/td-p/54281