Skip to content

Video games are big business: the global gaming market is projected to be worth more than $300 billion by 2027 according to Mordor Intelligence. With so much money at stake, the major game publishers are hugely incentivized to create the next big hit. But are games getting better, or has the golden age of video games already passed?

In this project, you'll analyze video game critic and user scores as well as sales data for the top 400 video games released since 1977. You'll search for a golden age of video games by identifying release years that users and critics liked best, and you'll explore the business side of gaming by looking at game sales data.

Your search will involve joining datasets and comparing results with set theory. You'll also filter, group, and order data. Make sure you brush up on these skills before trying this project! The database contains two tables. Each table has been limited to 400 rows for this project, but you can find the complete dataset with over 13,000 games on Kaggle.

game_sales table

ColumnDefinitionData Type
nameName of the video gamevarchar
platformGaming platformvarchar
publisherGame publishervarchar
developerGame developervarchar
games_soldNumber of copies sold (millions)float
yearRelease yearint

reviews table

ColumnDefinitionData Type
nameName of the video gamevarchar
critic_scoreCritic score according to Metacriticfloat
user_scoreUser score according to Metacriticfloat

users_avg_year_rating table

ColumnDefinitionData Type
yearRelease year of the games reviewedint
num_gamesNumber of games released that yearint
avg_user_scoreAverage score of all the games ratings for the yearfloat

critics_avg_year_rating table

ColumnDefinitionData Type
yearRelease year of the games reviewedint
num_gamesNumber of games released that yearint
avg_critic_scoreAverage score of all the games ratings for the yearfloat
Spinner
DataFrameas
best_selling_games
variable
-- Find the ten best-selling games.
-- FILTER all columns from game_sales table.
-- ORDER BY games_sold DESC
-- LIMIT 10

SELECT *
FROM game_sales
ORDER BY games_sold DESC
LIMIT 10;

-- Wii Sports for the Wii is the most popular game sold with more than double the next best in 2nd.
Spinner
DataFrameas
critics_top_ten_years
variable
-- Find the ten years with the highest average critic score, where at least four games were released (to ensure a good sample size).
-- FILTER year, num_games & avg_critic_score (ROUND to 2 dp)
-- ORDER BY avg_critic_score DESC
-- GROUP BY year
-- HAVING num_games > 4
-- INNER JOIN game_sales & reviews tables
-- LIMIT 10

SELECT gs.year, COUNT(*) AS num_games, ROUND(AVG(r.critic_score), 2) AS avg_critic_score
FROM game_sales AS gs
INNER JOIN reviews AS r
USING (name)
GROUP BY gs.year
HAVING COUNT(*) >= 4
ORDER BY avg_critic_score DESC
LIMIT 10;

-- So with at least 4 games released. 1998 is the year that had the highest average critic score.
Spinner
DataFrameas
golden_years
variable
-- Find the years where critics and users broadly agreed that the games released were highly rated.
-- Specifically, return the years where the average critic score was over 9 OR the average user score was over 9.
-- FILTER year, num_games, avg_critic_score, avg_user score & diff
-- ORDER BY year ASC
-- INNER JOIN the 2 ratings tables

SELECT u.year, u.num_games, c.avg_critic_score, u.avg_user_score, c.avg_critic_score - u.avg_user_score AS diff
FROM users_avg_year_rating AS u
INNER JOIN critics_avg_year_rating AS c
ON u.year = c.year AND u.num_games = c.num_games
WHERE c.avg_critic_score > 9 OR u.avg_user_score > 9
ORDER BY u.year ASC;

-- So 6 years where either critics or users scored above 9. Least difference in the highest critic score in 1998 and biggest the year before in 1997. Very interesting.