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
-- Add your own queries here
SELECT *
FROM cinema.reviews
LIMIT 5
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.
Select all details for German-language films released after 2000 but before 2010 using only WHERE and AND.
-- Select all records for German-language films released after 2000 and before 2010
SELECT *
FROM cinema.films
WHERE language = 'German' and release_year BETWEEN 2001 AND 2009;
Tar ithe it was very important for me to understand ki we are not allowed to put 2000 and 2010 directly, because everything that you write in BETWEEN is inclusive. Question bolla hota ki 2000 nantarche sanga, which means they wanted us to give films that were relased after 2000. Tar between madhe asa directly takla tar haglo. I guess this is very important thing to remember karan especially during interviews and all jevha apan stressed asto, ashya chuka honyacha chance khupach vadhto. Tar it's better to document this mistake and review it later before interviews!