If you're seeing this message, it means we're having trouble loading external resources for Khan Academy.

If you're behind a web filter, please make sure that the domains *.kastatic.org and *.kasandbox.org are unblocked.

Skip to main content
Subjects
  • Math by subject
    • Early math
    • Arithmetic
    • Algebra
    • Geometry
    • Trigonometry
    • Statistics & probability
    • Calculus
    • Differential equations
    • Linear algebra
    • Math for fun and glory
  • Math by grade
    • K–2nd
    • 3rd
    • 4th
    • 5th
    • 6th
    • 7th
    • 8th
    • High school
  • Science & engineering
    • Physics
    • Chemistry
    • Organic Chemistry
    • Biology
    • Health & medicine
    • Electrical engineering
    • Cosmology & astronomy
  • Computing
    • Computer programming
    • Computer science
    • Hour of Code
    • Computer animation
  • Arts & humanities
    • Art history
    • Grammar
    • Music
    • US history
    • World history
  • Economics & finance
    • Microeconomics
    • Macroeconomics
    • Finance & capital markets
    • Entrepreneurship
  • Test prep
    • SAT
    • MCAT
    • GMAT
    • IIT JEE
    • NCLEX-RN
  • College Admissions
    DonateSign in / Sign up
    Search for subjects, skills, and videos
    Main content
    Hour of Code Hour of Code
    Hour of Databases
    Welcome to SQL
    Creating a table and inserting data
    Challenge: Book list database
    Querying the table
    Challenge: Box office hits database
    Aggregating data
    Challenge: TODO list database stats
    Project: Design a store database
    Go beyond the hour
    Current time:0:00Total duration:2:05
    0 energy points
    Hour of Code
    |Hour of Code|
    Hour of Databases

    Welcome to SQL

    About
    SQL is useful for creating and querying relational databases. Learn how to use SQL with this interactive course!
    ShareTweetEmail
    Hour of Databases
    Welcome to SQL
    Creating a table and inserting data
    Challenge: Book list database
    Querying the table
    Challenge: Box office hits database
    Aggregating data
    Challenge: TODO list database stats
    Project: Design a store database
    Go beyond the hour
    Creating a table and inserting data
    Up Next
    Creating a table and inserting data