Create a file called WeatherData.sql. Create a database called weather and inser
ID: 3573209 • Letter: C
Question
Create a file called WeatherData.sql. Create a database called weather and insert weather data Create a program called WeatherData.java. Write SQL queries on weather data table that return All the records for the city of London All the summer records The city, country, and season for which the average temperature is less than 20 degree The city, country, and season for which the average temperature is greater than 20 degree and the total rainfall is less than 10 mm The maximum total rainfall The city, season, and rainfall amounts for all records in descending order of rainfall The total yearly rainfall for Cairo, Egypt The city name, country and total yearly rainfall for every distinct cityExplanation / Answer
INSERT INTO WEATHER VALUES (/* put accordingly to datatypes*/)
2)
select * from WEATHER where CITY = 'London';
select * from WEATHER where SEASON = 1; // if summer is 1
select CITY, COUNTRY, SEASON from WEATHER where TEMPERATURE < 20.0;
select CITY, COUNTRY, SEASON from WEATHER where TEMPERATURE > 20.0 and RAINFALL < 10.0;
# Only 4 subparts are allowed to answer
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.