Skip to main content
HomeSQLData Manipulation in SQL

Data Manipulation in SQL

4.4+
186 reviews
Beginner

Master the complex SQL queries necessary to answer a wide variety of data science questions and prepare robust data sets for analysis in PostgreSQL.

Start Course for Free
4 hours15 videos55 exercises
236,244 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

So you've learned how to aggregate and join data from tables in your database—now what? How do you manipulate, transform, and make the most sense of your data? This intermediate-level course will teach you several key functions necessary to wrangle, filter, and categorize information in a relational database, expand your SQL toolkit, and answer complex questions. You will learn the robust use of CASE statements, subqueries, and window functions—all while discovering some interesting facts about soccer using the European Soccer Database.
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

Associate Data Analyst in SQL

Go To Track
  1. 1

    We'll take the CASE

    Free

    In this chapter, you will learn how to use the CASE WHEN statement to create categorical variables, aggregate data into a single column with multiple filtering conditions, and calculate counts and percentages.

    Play Chapter Now
    We'll take the CASE
    50 xp
    Basic CASE statements
    100 xp
    CASE statements comparing column values
    100 xp
    CASE statements comparing two column values part 2
    100 xp
    In CASE things get more complex
    50 xp
    In CASE of rivalry
    100 xp
    Filtering your CASE statement
    100 xp
    CASE WHEN with aggregate functions
    50 xp
    COUNT using CASE WHEN
    100 xp
    COUNT and CASE WHEN with multiple conditions
    100 xp
    Calculating percent with CASE and AVG
    100 xp
  2. 3

    Correlated Queries, Nested Queries, and Common Table Expressions

    In this chapter, you will learn how to use nested and correlated subqueries to extract more complex data from a relational database. You will also learn about common table expressions and how to best construct queries using multiple common table expressions.

    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

Associate Data Analyst in SQL

Go To Track

collaborators

Collaborator's avatar
Sumedh Panchadhar
Collaborator's avatar
Hillary Green-Lerman

prerequisites

Joining Data in SQL
Mona Khalil HeadshotMona Khalil

Data Scientist, Greenhouse Software

See More

Don’t just take our word for it

*4.4
from 186 reviews
70%
13%
12%
3%
1%
Sort by
  • Cei Y.
    14 days

    Clear succinct explanations. Topic coverage was at the right level of depth. Exercises tested knowledge at the right level of complexity. The presenter had excellent communication skills and easy-to-understand delivery. Highly recommended.

  • Lilian W.
    27 days

    It was a well-engaging course.

  • Caroline M.
    28 days

    The details and concepts were well explained with good examples. This course covers important SQL concepts that are missing in most online courses.

  • Canh N.
    about 2 months

    Good

  • Suhrullekha M.
    about 2 months

    Was good learning!

"Clear succinct explanations. Topic coverage was at the right level of depth. Exercises tested knowledge at the right level of complexity. The presenter had excellent communication skills and easy-to-understand delivery. Highly recommended."

Cei Y.

"It was a well-engaging course."

Lilian W.

"The details and concepts were well explained with good examples. This course covers important SQL concepts that are missing in most online courses."

Caroline M.

FAQs

Join over 14 million learners and start Data Manipulation in 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.