Skip to content

Commit cc6ad67

Browse files
authored
Add SQL query for rising temperature comparison
1 parent d79de5a commit cc6ad67

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

197. Rising Temperature

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
SELECT today.id
2+
FROM Weather yesterday
3+
CROSS JOIN Weather today
4+
5+
WHERE DATEDIFF(today.recordDate,yesterday.recordDate) = 1
6+
AND today.temperature > yesterday.temperature
7+
;

0 commit comments

Comments
 (0)