Write a solution to find all dates Id
with higher temperatures compared to its previous dates (yesterday).
Return the result table in any order.
The result format is in the following example.
DATEDIFF
를 사용할 수 있다.SELECT W2.ID
FROM Weather as w1 join Weather as w2
ON DATEDIFF(w2.recordDate, w1.recordDate) = 1
WHERE w1.temperature < w2.temperature;