Skip to main content
Grzegorz Gąsiewski avatar

Grzegorz Gąsiewski has completed

Data Manipulation in SQL

Start course For Free
4 hours
4,700 XP
Statement of Accomplishment Badge

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

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

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.