Introduction
Introduction
This dataset contains a list of video games sales in NA, EU and JP region. It was generated by a scrape of vgchartz.com.
Fields include
- Rank — Ranking of overall sales
- Name — The games name
- Platform — Platform of the games release (i.e. PC,PS4, etc.)
- Year — Year of the game’s release
- Genre — Genre of the game
- Publisher — Publisher of the game
- NA_Sales — Sales in North America (in millions)
- EU_Sales — Sales in Europe (in millions)
- JP_Sales — Sales in Japan (in millions)
- Other_Sales — Sales in the rest of the world (in millions)
For the purpose of this article, I will be focusing on the Japan region.
Setup
Create Database
mysql> CREATE DATABASE console_game;
Create Table
mysql> CREATE TABLE console_games (
game_rank integer,
game_name varchar(1200),
platform_name varchar(1200),
game_year integer,
genre varchar(200),
publisher varchar(1200),
na_sales float,
eu_sales float,
jp_sales float,
other_sales float
);
View Data
Select all to display data.
USE console_game;
SELECT * FROM console_games;
… 1000 row(s) returned
Check Null Values
The above query yields all records in columns where the values are NULL.
0 row(s) returned.