Skip to main content
HomeSQLData Manipulation in SQL

Data Manipulation in SQL

4.4+
157 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
210,778 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.

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

In the following tracks

Associate Data Analyst in SQLSQL Fundamentals

Collaborators

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

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 157 reviews
70%
13%
11%
4%
1%
Sort by
  • Sebastián A.
    about 2 months

    Very complete and easy to understand

  • Mazhar H.
    4 months

    Excellent learning with datacamp

  • Pawel N.
    5 months

    Really great course by Mona. Hope to see more courses from her and with such good quality. Especially window functions were well and concise explained.

  • Sy D.
    7 months

    Very useful course!

  • Omar U.
    7 months

    Good exercises

"Very complete and easy to understand"

Sebastián A.

"Excellent learning with datacamp"

Mazhar H.

"Really great course by Mona. Hope to see more courses from her and with such good quality. Especially window functions were well and concise explained."

Pawel N.

FAQs

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