diff --git a/leetcode/SQL/197. Rising Temperature.sql b/leetcode/SQL/197. Rising Temperature.sql index 275c888..98e3778 100644 --- a/leetcode/SQL/197. Rising Temperature.sql +++ b/leetcode/SQL/197. Rising Temperature.sql @@ -29,11 +29,11 @@ SELECT FROM weather JOIN - weather w ON DATEDIFF(weather.date, w.date) = 1 + weather w ON DATEDIFF(weather.Recorddate, w.Recorddate) = 1 AND weather.Temperature > w.Temperature SELECT DISTINCT a.Id FROM Weather a,Weather b WHERE a.Temperature > b.Temperature -AND DATEDIFF(a.Recorddate, b.Recorddate) = 1 \ No newline at end of file +AND DATEDIFF(a.Recorddate, b.Recorddate) = 1