Question: SQL Schema: Create table Weather ( id int, recordDate date, temperature int ) Truncate table Weather insert into Weather ( id , recordDate, temperature )
SQL Schema:
Create table Weather id int, recordDate date, temperature int
Truncate table Weather
insert into Weather id recordDate, temperature values
insert into Weather id recordDate, temperature values
insert into Weather id recordDate, temperature values
insert into Weather id recordDate, temperature values
Table: Weather
Column Name Type
id int
recordDate date
temperature int
id is the column with unique values for this table.
This table contains information about the temperature on a certain day.
Write a solution to find all dates' Id with higher temperatures compared to its previous dates yesterday
Return the result table in any order.
The result format is in the following example.
Example :
Input:
Weather table:
id recordDate temperature
Output:
id
Explanation:
In the temperature was higher than the previous day
In the temperature was higher than the previous day
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
