12
返回列表 发新帖
楼主: Jessica028
跳转到指定楼层
上一主题 下一主题
收起左侧

[统计--就业] 求大米-领英-DA-SQL

 
🔗
exlboy 2019-3-6 06:28:52 | 只看该作者
全局:
lz的题目和答案都很有帮助,点攒点赞
回复

使用道具 举报

🔗
hwaaron 2019-4-4 07:32:07 | 只看该作者
全局:
thanks alot for 分享
回复

使用道具 举报

🔗
Blanchey218 2019-4-5 04:50:23 | 只看该作者
全局:
可以问下recruiter 的联系方式吗? 谢谢楼主!
回复

使用道具 举报

🔗
 楼主| Jessica028 2019-4-5 05:10:49 来自APP | 只看该作者
全局:
Blanchey218 发表于 2019/04/05 04:50:23.google  и
可以问下recruiter 的联系方式吗? 谢谢楼主!

你好,是第三方的recruiter联系我的,不是Linkedin自己的HR
回复

使用道具 举报

全局:
Jessica028 发表于 2019/04/05 05:10:49


你好,是第三方的recruiter联系我的,不是Linkedin自己的HR
. From 1point 3acres bbs
好的!知道啦,还是谢谢楼主!
回复

使用道具 举报

🔗
羽宝儿 2019-4-13 22:23:07 | 只看该作者
全局:
 点赞
回复

使用道具 举报

全局:
# q1 with t1 as (select date, sum(amount) as revenue from payment group by 1) t2 as (select date, count(distinct memberid) as num_users from user group by 1) select date.date, t1.revenue,t2.buyers from date left join t2 on date.date=t2.date left join t1 on t1.date=date.date  # q2 select date,memberid from( select date, memberid,rank() over(partition by date,memberid order by sum(amount) desc) as rank from payment) where rank = 1   # q3 with t as ( select member, count(distinct date) as active_days from user where date <= 2019-03-07 and date >= 2019-03-01 group by 1) select count(member), active_days from t group by 2 order by 2  # q4  select u.date,u.memberid from user u left join payment p where u.date=p.date and u.memberid<>p.memberid
回复

使用道具 举报

🔗
Frances0412 2019-8-13 13:17:22 | 只看该作者
全局:
Jessica028 发表于 2019-2-2 03:40
3.         SELECT #Days Active, COUNT(*)
            FROM (SELECT DISTINCT memberID, COUNT(*) as #D ...

感觉这个第三题的解法里面应该是不需要加distinct memberID吧 因为已经group by了,而且并不是group by两个变量,所以不存在duplicate的问题
关于这个topic还挺有意思,我还查了其他需要distinct & group by一起用的情况,贴出来大家一起学习下~
https://stackoverflow.com/questi ... p-by-in-sql-server/
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册账号
隐私提醒:
  • ☑ 禁止发布广告,拉群,贴个人联系方式:找人请去🔗同学同事飞友,拉群请去🔗拉群结伴,广告请去🔗跳蚤市场,和 🔗租房广告|找室友
  • ☑ 论坛内容在发帖 30 分钟内可以编辑,过后则不能删帖。为防止被骚扰甚至人肉,不要公开留微信等联系方式,如有需求请以论坛私信方式发送。
  • ☑ 干货版块可免费使用 🔗超级匿名:面经(美国面经、中国面经、数科面经、PM面经),抖包袱(美国、中国)和录取汇报、定位选校版
  • ☑ 查阅全站 🔗各种匿名方法

本版积分规则

>
快速回复 返回顶部 返回列表