题解 | #给出employees表中排名为奇数行的first_name#

给出employees表中排名为奇数行的first_name

http://www.nowcoder.com/practice/e3cf1171f6cc426bac85fd4ffa786594

-- 先排序再选择
select first_name
from employees
where first_name in (
                        select first_name
                        from(
                                select first_name,
                                       dense_rank() over (order by first_name) as dr
                                from employees  ) as t1
                         where dr%2=1    )

全部评论

相关推荐

10-30 19:23
已编辑
山东大学(威海) C++
牛至超人:其实简历是不需要事无巨细的写的,让对方知道你有这段经历就行了,最重要的是面试的时候讲细讲明白
点赞 评论 收藏
分享
12-16 22:45
已编辑
电子科技大学 活动运营
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务