Skip to content

Intermediate SQL

Here you can access every table used in the course. To access each table, you will need to specify the cinema schema in your queries (e.g., cinema.reviews for the reviews table.

Take Notes

Add notes about the concepts you've learned and SQL cells with queries you want to keep.

Add your notes here

Spinner
DataFrameas
df
variable
-- Add your own queries here
SELECT *
FROM cinema.reviews
Spinner
DataFrameas
df
variable
SELECT films.title, reviews.imdb_score
FROM cinema.films
INNER JOIN cinema.reviews 
ON films.id = reviews.id 
WHERE reviews.imdb_score > 8.5;
Spinner
DataFrameas
df
variable
SELECT title, country, release_year
FROM cinema.films
WHERE country = 'Germany' AND release_year > 2010
ORDER BY release_year DESC;

Explore Datasets

Use the descriptions, films, people, reviews, and roles tables to explore the data and practice your skills!

  • Which titles in the reviews table have an IMDB score higher than 8.5?
  • Select all titles from Germany released after 2010 from the films table.
  • Calculate a count of all movies by country using the films table.
Spinner
DataFrameas
df
variable
SELECT country, COUNT(title) AS count_films
FROM cinema.films
WHERE country IS NOT NULL 
GROUP BY country;