Skip to content

Instantly share code, notes, and snippets.

View hevolx's full-sized avatar
🧐
Learning new things

Love Holmgren hevolx

🧐
Learning new things
View GitHub Profile
@hevolx
hevolx / the_best_of_baseball_awards.sql
Last active July 22, 2026 10:37
the_best_of_baseball_awards.sql
-- Heaviest Hitters - This award goes to the team with the highest average weight of its batters on a given year
SELECT
ROUND(AVG(weight), 2) AS "Average Weight",
teams.name AS "Team Name",
batting.yearid AS "Year"
FROM people
JOIN batting
ON people.playerid = batting.playerid
JOIN teams
ON batting.team_id = teams.id