![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
LeetCode
福贵儿
Stay Hungry, Stay Foolish
展开
-
LC刷题的方法论(持续更新)
树原创 2022-07-26 23:27:46 · 242 阅读 · 0 评论 -
题目中看SQL(三)
1.题目 2.思考 #提交的sql select id , sum(case `month` when 'Jan' then revenue else null end) as Jan_Revenue , sum(case `month` when 'Feb' then revenue else null end) as Feb_Revenue ...原创 2020-03-17 10:03:10 · 314 阅读 · 0 评论 -
题目中看SQL(二)
1.题目 2. 思考 #提交的SQL select t.request_at as Day, round(count(case when t.Status != 'completed' then 1 end)/count(t.Status),2) ...原创 2020-03-15 17:21:09 · 340 阅读 · 0 评论 -
题目中看SQL(一)
1.题目 2.思考 delete from person where id not in ( select id from ( select min(id) as id from person group by email )tmp ) 一开始没有临时表那一层,提交会报错,后来在外面包了一层,提交,正确。 在M...原创 2020-03-17 10:00:24 · 309 阅读 · 0 评论