【发布时间】:2018-09-24 22:25:54
【问题描述】:
查询:
SELECT distinct
rank() OVER (ORDER BY p.service) as rank,
p.service,
From table_service
Where 1=1
输出:
排名:1 |服务:test1
排名:2 |服务:test2
排名:3 |服务:test3
我如何才能只显示 Rank 2 ?
我试过了,但没有用:
SELECT distinct
rank() OVER (ORDER BY p.service) as rank,
p.service,
From table_service
Where rank = 2
有什么想法吗?
【问题讨论】: