Skip to content

Commit

Permalink
Time: 1829 ms (5.01%), Space: 0B (100.00%) - LeetHub
Browse files Browse the repository at this point in the history
  • Loading branch information
joseantoniochacon committed May 31, 2024
1 parent 25b8f79 commit 3099422
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 0197-rising-temperature/0197-rising-temperature.sql
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Write your MySQL query statement below
SELECT id FROM Weather w1 WHERE temperature > (SELECT temperature FROM Weather w2 WHERE w2.recordDate = DATE_SUB(w1.recordDate, INTERVAL 1 DAY));
SELECT w1.id FROM Weather w1 WHERE w1.temperature > (SELECT w2.temperature FROM Weather w2 WHERE w2.recordDate = DATE_SUB(w1.recordDate, INTERVAL 1 DAY));

0 comments on commit 3099422

Please sign in to comment.