SQL

197. Rising Temperature

Given a Weather table, write a SQL query to find all dates' Ids with higher temperature compared to its previous (yesterday's) dates.

For example, return the following Ids for the above Weather table:

Logic: Join two weather tables and iterate all possible (today, yesterday) and output the records with the temperatures higher than its previous dates.

LINK

REF

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Isabelle

Isabelle

In love with telling stories with data