?
Find the name of all cities with their temperature, humidity and countries.
Answer & Solution
Correct Answer:
Option
C
To retrieve the names of all cities along with their temperature, humidity, and countries, you should use the SQL query SELECT weather.city, temperature, humidity, country FROM weather, location WHERE weather.city = location.city; (Option C). This query correctly joins the "weather" and "location" tables based on the "city" column, which is common between the two tables. This allows you to obtain the information for all cities, including their temperature, humidity, and corresponding countries. Option C is the appropriate choice for achieving this result.
Join the Discussion
Login to post a comment or share your explanation.
Login