Skip to content
Advertisement

Tag: analytic-functions

How to use DENSE_RANK and order by aditional column?

I am trying to use dense_rank to get element order for instance: I have table seq_test with data: after I run the code above, I’ve got : I want to achieve: So DENSE_RANK() function use its own order defined in function definition I need to order the SEQ column by sequence column. Update: I want to get: Answer Since the

Advertisement