Created
June 26, 2021 09:28
-
-
Save James-McNeill/7278fd6b39df63f58e5f43e2e001be7c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Order the results by column ascending | |
SELECT county, station, max(temp) as max_temp, min(temp) as min_temp | |
FROM hrly_Irish_weather | |
WHERE county = "Cork" | |
GROUP BY county, station | |
ORDER BY max_temp; | |
-- Order the results by column descending | |
SELECT county, station, max(temp) as max_temp, min(temp) as min_temp | |
FROM hrly_Irish_weather | |
WHERE county = "Cork" | |
GROUP BY county, station | |
ORDER BY max_temp DESC; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment