由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
DataSciences版 - SQL某startup面经,顺便求指点 (转载)
相关主题
F家DS,analytics电面面经,贡献一个sql相关 (转载)下周面A和L的data scientist and data engineer. 有没有面经?一般问些啥?
最近的一些面经杂七杂八的一些面经 (转载)
分享一个Data Scientist的面经攒RP。。 (转载)[Pig Progamming] Pig Latin join problem
求:Google quant analyst面经攒人品,求bless~ 新鲜面经 - Machine Learning Engineer
求:Google quant analyst面经分享两个data scientist职位的面经
【求助】求Facebook DS 电话面试和onsite面经T家在线题2道
Many 2 Many用cassandra怎么做好?求 zillow data scientist 面经
请教一个安装postgreSQL的问题想请问以下F家DS的面经可以么?
相关话题的讨论汇总
话题: sql话题: temp话题: 面经话题: startup话题: name
进入DataSciences版参与讨论
1 (共1页)
s*********0
发帖数: 2
1
【 以下文字转载自 JobHunting 讨论区 】
发信人: superds2100 (superds), 信区: JobHunting
标 题: SQL某startup面经,顺便求指点
发信站: BBS 未名空间站 (Wed Aug 3 17:27:08 2016, 美东)
某startup面经,感觉挺难,似乎还可以优化一点,有大神路过帮忙指点一下。
上次就是SQL挂了,不是很很有信心。
postgresql. 要求按照signup操作系统,工作日周一到周五分类,分别列出用户注册后
一天内使用
app某功能人数和当天注册用户的百分比。一个t_requests的表有使用的记录,temp是
提取出来的有关用户的表。
with id_succeed  as
(select temp.client_id
from t_requests as t inner join temp
on temp.client_id = t.client_id
where t.status = 'completed'
and
t.request_time is not null
group by temp.client_id
having min(t.request_time-temp.signup_time) < interval '24 hour'
)
select temp.OS_name, temp.day_id,
sum(
case when (s.client_id is not null) then 1
else 0
end
)*100.0/count(*) as percentage
from
temp left join id_succeed as s
on  temp.client_id = s.client_id
group  by temp.OS_name, temp.day_id
order  by temp.OS_name, temp.day_id;
1 (共1页)
进入DataSciences版参与讨论
相关主题
想请问以下F家DS的面经可以么?求:Google quant analyst面经
Any 面经 for Workday Data Scientist?【求助】求Facebook DS 电话面试和onsite面经
求Facebook家DS的面经Many 2 Many用cassandra怎么做好?
Re: 攒人品,发Google Statistician/Data Scientist电面面经请教一个安装postgreSQL的问题
F家DS,analytics电面面经,贡献一个sql相关 (转载)下周面A和L的data scientist and data engineer. 有没有面经?一般问些啥?
最近的一些面经杂七杂八的一些面经 (转载)
分享一个Data Scientist的面经攒RP。。 (转载)[Pig Progamming] Pig Latin join problem
求:Google quant analyst面经攒人品,求bless~ 新鲜面经 - Machine Learning Engineer
相关话题的讨论汇总
话题: sql话题: temp话题: 面经话题: startup话题: name