Skip to main content
HomeSQLIntroduction to SQL

Introduction to SQL

4.7+
1,633 reviews
Beginner

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

Start Course for Free
2 hours7 videos24 exercises
836,281 learnersTrophyStatement of Accomplishment

Create Your Free Account

GoogleLinkedInFacebook

or

By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.
GroupTraining 2 or more people?Try DataCamp For Business

Loved by learners at thousands of companies


Course Description

Get an Introduction to SQL in Two Hours

Much of the world's raw data—from electronic medical records to customer transaction histories—lives in organized collections of tables called relational databases. Being able to wrangle and extract data from these databases using SQL is an essential skill within the data industry and in increasing demand.

In just two hours, you'll get to know the theory and the practice through bite-sized videos and interactive exercises where you can put your new-found skills to the test.

Learn how Relational Databases are Organized

SQL is an essential language for building and maintaining relational databases, which opens the door to a range of careers in the data industry and beyond. You’ll start this course by covering data organization, tables, and best practices for database construction.

Write Your First SQL Queries

The second half of this course looks at creating SQL queries for selecting data that you need from your database. You’ll have the chance to practice your querying skills before moving on to customizing and saving your results.

Understand the Difference Between PostgreSQL and SQL Server

PostgreSQL and SQL Server are two of the most popular SQL flavors. You’ll finish off this course by looking at the differences, benefits, and applications of each. By the end of the course, you’ll have some hands-on experience in learning SQL and the grounding to start applying it to projects or continue your learning in a more specialized direction.
For Business

GroupTraining 2 or more people?

Get your team access to the full DataCamp library, with centralized reporting, assignments, projects and more
Try DataCamp for BusinessFor a bespoke solution book a demo.

In the following Tracks

Certification Available

SQL Fundamentals

Go To Track
Certification Available

Data Scientist in Python

Go To Track
Certification Available

Data Scientist in R

Go To Track
  1. 1

    Relational Databases

    Free

    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.

    Play Chapter Now
    Databases
    50 xp
    What are the advantages of databases?
    50 xp
    Data organization
    50 xp
    Tables
    50 xp
    Picking a unique ID
    50 xp
    Setting the table in style
    50 xp
    Our very own table
    100 xp
    Data
    50 xp
    At your service
    50 xp
    Finding data types
    50 xp
    Choice of type
    100 xp
  2. 2

    Querying

    Learn your first SQL keywords for selecting relevant data from database tables! After practicing querying skills in a database of books, you’ll customize query results using aliasing and save them as views so they can be shared. Finally, you’ll explore the differences between SQL flavors and databases such as PostgreSQL and SQL Server.

    Play Chapter Now
For Business

GroupTraining 2 or more people?

Get your team access to the full DataCamp library, with centralized reporting, assignments, projects and more

In the following Tracks

Certification Available

SQL Fundamentals

Go To Track
Certification Available

Data Scientist in Python

Go To Track
Certification Available

Data Scientist in R

Go To Track

In other tracks

Associate Data Analyst in SQLAssociate Data Engineer in SQL

collaborators

Collaborator's avatar
Amy Peterson
Collaborator's avatar
James Chapman
Izzy Weber HeadshotIzzy Weber

Data Coach at iO-Sphere

Izzy is a Data Coach at iO-Sphere. She discovered a love for data during her seven years as an accounting professor at the University of Washington. She holds a masters degree in Taxation and is a Certified Public Accountant. Her passion is making learning technical topics fun.
See More

Don’t just take our word for it

*4.7
from 1,633 reviews
83%
13%
3%
1%
0%
Sort by
  • Hazem A.
    4 days

    It covered the basics in a very simple manner and made everything clearer to me than many other courses out there.

  • Ana L.
    5 days

    Super fácil de comprender

  • Abdallah A.
    6 days

    Great learning so far.

  • Orlando C.
    6 days

    It was less intimidating than expected. It encourages me to learn more.

  • Eden Z.
    6 days

    I like the concept of database and the SQL languages to access the data in this course.

"It covered the basics in a very simple manner and made everything clearer to me than many other courses out there."

Hazem A.

"Super fácil de comprender"

Ana L.

"Great learning so far."

Abdallah A.

FAQs

Join over 14 million learners and start Introduction to SQL today!

Create Your Free Account

GoogleLinkedInFacebook

or

By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.