MIHIR KAR
asked on
Oracle_Analytics
Hii experts i have a query...
dense_rank() over (parttition by 1 group by colunm_name) ---what dose this syntax means where exactly it's uses .
Thanks in Advance
dense_rank() over (parttition by 1 group by colunm_name) ---what dose this syntax means where exactly it's uses .
Thanks in Advance
ASKER
Thaks a lot Paul .
I got clear with order by option ,but i have doubt on how to use Group By on partition .
I got clear with order by option ,but i have doubt on how to use Group By on partition .
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
oracle docs
e.g.
Any person who gets 100% in a test would be ranked 1 (the highest place in class)
Any person who gets 0% in a test would be ranked the lowest in class
select
person
, dense_rank() over (partition by 1 order by exam_result DESC) as class_rank
from exams
where class = 'year2016 economics'
------
"group by" is not valid within an OVER() clause