Skip to content
Intermediate SQL
  • AI Chat
  • Code
  • Report
  • 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
    DataFrameavailable as
    df
    variable
    -- 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.

    -- Course Road Map --

    • Querying Database
    • Count and View specified record
    • Understand query execution and style
    • Filtering
    • Aggregate Function
    • Soring and Grouping

    COUNT count the number of records with a value in a field

    `SELECT COUNT(birthdate) AS count_birthdates FROM people;`
    • COUNT(field_name)count values in a field

    • COUNT(*) counts records in a table

      SLECT COUNT(*) AS Total_records FROM people;

    • Combine COUNT() with DISTINCT to count unique values

      SELECT COUNT(DISTINCT birthdate) AS count_distinct_birthdates FROM people;

    • COUNT() includes duplicates

    • DISTINCT exclude duplicates

    **QUERY EXECUTION **