Skip to main content
HomeSQL

Data Manipulation in SQL

4.4+
190 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 exercises243,384 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.
Group

Training 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

Training 2 or more people?

Get your team access to the full DataCamp platform, including all the features.
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

Training 2 or more people?

Get your team access to the full DataCamp platform, including all the features.

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 190 reviews
71%
13%
12%
3%
1%
Sort by
  • Tatiana U.
    16 days

    It's a little bit tricky for me because by the time I learned this course, I haven't been studying other course with similar material. So, I can't compare and evaluate correctly. I suppose. Maybe, one day I can say "no, this course is not good", but now I know only this course, so this course is the best for me.

  • Chau B.
    27 days

    Great contents. Clear instruction!

  • Rick H.
    27 days

    Thorough and well-explained. It helped me understand advanced (and important) SQL query functions. The coding practice portions are so helpful.

  • Cei Y.
    about 2 months

    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.
    2 months

    It was a well-engaging course.

"It's a little bit tricky for me because by the time I learned this course, I haven't been studying other course with similar material. So, I can't compare and evaluate correctly. I suppose. Maybe, one day I can say "no, this course is not good", but now I know only this course, so this course is the best for me."

Tatiana U.

"Great contents. Clear instruction!"

Chau B.

"Thorough and well-explained. It helped me understand advanced (and important) SQL query functions. The coding practice portions are so helpful."

Rick H.

FAQs

Join over 15 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.