Get Started

Our very own table

A database has been set up for this course and the books table is available here.

Run the code to explore what data books holds!

This is a part of the course

“Introduction to SQL”

View Course

Exercise instructions

  • Hit "Run Code" to see the books table.

Hands-on interactive exercise

Have a go at this exercise by completing this sample code.

SELECT *
FROM books;

This exercise is part of the course

Introduction to SQL

BeginnerSkill Level
4.8+
1732 reviews

Learn how to create and query relational databases using SQL in just two hours.

Before writing any SQL queries, it’s important to understand the underlying data. In this chapter, we’ll discover the role of SQL in creating and querying relational databases. Using a database for a local library, we will explore database and table organization, data types and storage, and best practices for database construction.

Exercise 1: DatabasesExercise 2: What are the advantages of databases?Exercise 3: Data organizationExercise 4: TablesExercise 5: Picking a unique IDExercise 6: Setting the table in styleExercise 7: Our very own table
Exercise 8: DataExercise 9: At your serviceExercise 10: Finding data typesExercise 11: Choice of type

What is DataCamp?

Learn the data skills you need online at your own pace—from non-coding essentials to data science and machine learning.

Start Learning for Free