select dense_rank() over(order by birthday ),birthday,name
from member
where to_char(birthday, 'YYYY/MM/DD') ='2014/01/01'
orderby的用法就和平常一樣也可以設定是要partition by什麼
例如:
select rank() over(partition by 性別 order by birthday ),birthday,name
from member
where to_char(birthday, 'YYYY/MM/DD') ='2014/01/01'
沒有留言:
張貼留言