Skip to content

Commit a140833

Browse files
authored
Merge pull request #1 from aryaman0406/aryaman0406-patch-1
Add SQL query for rising temperature comparison
2 parents d79de5a + cc6ad67 commit a140833

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)