摘要:
SELECT e1.id, e1.month, SUM (e2.salary) FROM Employee e1, Employee e2, (SELECT id, MAX (month) recent FROM [Employee]group by id) e3where e1.Id = e3.I 阅读全文
posted @ 2018-10-20 05:54
ffeng0312
阅读(406)
评论(0)
推荐(0)
摘要:
https://leetcode.com/articles/get-highest-answer-rate-question/SELECT question_id as survey_log FROM ( SELECT question_id, SUM(case when action="answe 阅读全文
posted @ 2018-10-20 03:39
ffeng0312
阅读(309)
评论(0)
推荐(0)
摘要:
https://leetcode.com/articles/employee-bonus/ SELECT name, bonus FROM Employee e LEFT JOIN Bonus b ON e.empId = b.empId WHERE bonus < 1000; select nam 阅读全文
posted @ 2018-10-20 03:03
ffeng0312
阅读(142)
评论(0)
推荐(0)

浙公网安备 33010602011771号