![](https://img-blog.csdnimg.cn/4092a7edcba54faa9f89c505421ce5eb.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
【SQL】
【SQL】
一如年少丶
software entities (modules, classes, functions, etc.) should be open for extension , but closed for modification.
展开
-
leetcode 197. 上升的温度
题目给定一个 Weather 表,编写一个 SQL 查询,来查找与之前(昨天的)日期相比温度更高的所有日期的 Id。+---------+------------------+------------------+| Id(INT) | RecordDate(DATE) | Temperature(INT) |+---------+------------------+------------------+| 1 | 2015-01-01 | 1原创 2020-07-01 23:57:04 · 214 阅读 · 0 评论 -
LeetCode 601.体育馆的人流量
X 市建了一个新的体育馆,每日人流量信息被记录在这三列信息中:序号 (id)、日期 (date)、 人流量 (people)。请编写一个查询语句,找出高峰期时段,要求连续三天及以上,并且每天人流量均不少于100。例如,表 stadium:+------+------------+-----------+| id | date | people |+------+-----...原创 2018-05-26 18:42:34 · 2981 阅读 · 0 评论