The Olympics dataset

Reportistica in SQL

Tyler Pernes

Learning & Development Consultant

Entity-Relationship (E:R) diagram

  • Visual representation of database structure
  • Lays out tables and fields
  • Identifies relationships
Reportistica in SQL

Olympics dataset E:R diagram

Reportistica in SQL

Olympics dataset E:R diagram

Reportistica in SQL

Olympics dataset E:R diagram

SELECT *
FROM countries AS c1
JOIN country_stats AS c2
ON c1.id = c2.country_id;
Reportistica in SQL

Tables and fields

Reportistica in SQL

Tables and fields

Reportistica in SQL

Tables and fields

Reportistica in SQL

Tables and fields

Reportistica in SQL

Reference for queries

Reportistica in SQL

Reference for queries

Reportistica in SQL

Reference for queries

SELECT 
    region, 
    SUM(pop_in_millions) AS pop_in_millions
FROM countries AS c1
JOIN country_stats AS c2
ON c1.id = c2.country_id
GROUP BY region;
Reportistica in SQL

Practice time!

Reportistica in SQL

Preparing Video For Download...