level 6
没什么啊 就一些约束条件啊 这个公司面试过了底薪多少啊
2018年10月09日 23点10分
2
你看下第一题会吗? 帮我写下
2018年10月10日 12点10分
level 1
SELECT A.id ,
name as '用户姓名',
min(B.invest_date) as '首笔投资时间',
c.amount as '首笔投资金额',
max(B.invest_date) as '最后一笔投资时间',
d.amount as '首笔投资金额',
sum(B.amount) as '总金额'
from member A,invest B ,
(select a.* from invest a,
(SELECT uid,MIN(invest_date) as b_date from invest GROUP BY uid) b where a.invest_date=b.b_date) c,
(select a.* from invest a,
(SELECT uid,Max(invest_date) as b_date from invest GROUP BY uid) b where a.invest_date=b.b_date) d
WHERE A.id=B.uid and A.id=c.uid and A.id=d.uid GROUP BY A.name;
2018年10月11日 08点10分
3
谢谢大佬 我想了很久 都没想到那两个投资金额的写法
2018年10月13日 05点10分