Is there a way to write a row_number() function such that the column below titled (HELP HERE) can be achieved? I want to be able to rank columns a through d into buckets per the data in column d.
a b c d (HELP HERE)
1603 82 117276 36 1
1603 82 117276 36 1
1603 82 117276 37 2
1603 82 117276 37 2
If I try row_number() over (partition by a,b,c order by d)
the data reacts like this
a b c d (HELP HERE)
1603 82 117276 36 1
1603 82 117276 36 2
1603 82 117276 37 1
1603 82 117276 37 2