上升的温度


这是一道使用 sql 语句编程的题目

https://leetcode-cn.com/problems/rising-temperature/

2. 解法

联表查询
注意联表的条件和取值

# Write your MySQL query statement below
select w1.Id
from Weather as w1, Weather as w2
where from_unixtime(unix_timestamp(w1.RecordDate) - 86400, '%Y-%m-%d') = w2.RecordDate 
and w1.Temperature > w2.Temperature

相关文章:

  • 2021-08-03
  • 2022-12-23
  • 2021-08-23
  • 2021-04-14
  • 2022-12-23
  • 2021-07-25
  • 2022-01-02
  • 2021-07-02
猜你喜欢
  • 2021-11-20
  • 2022-12-23
  • 2021-08-28
  • 2021-12-13
  • 2020-03-26
  • 2021-06-21
  • 2021-10-29
相关资源
相似解决方案