Data Manipulation in SQL

Start Free Preview

Buying via our links supports this free directory · Affiliate disclosure.
Course facts
  • Payment: Free Preview (Paid Upgrade)
  • Learning style: Self-paced, start anytime
  • Format: Text & Interactive
  • Video access: Streaming Only
  • Before you start: Joining Data in SQL
DataCamp details
  • Chapters: 4
Created byDataCamp
Available onDataCamp

Course Details
Learning Style

Start Anytime

Level

Beginner

Study Mode

100% Online

Duration

Short (< 10 Hours)

Languages
Audio Language

English

Outcomes
Certificate

Certificate of Completion

Price & Terms
Pricing Model

Free Preview (Paid Upgrade)

Technical
Content Medium

Text & Interactive

Video Access

Streaming Only

Specification
Access

Subscription

SKU: data-manipulation-sql Category: Tags: , Brand:

Learn to categorize, filter and summarize relational data with CASE WHEN, subqueries, common table expressions and window functions in SQL.

At a glance
Duration4 hrs
LevelBeginner
CertificateCertificate of Completion
LanguageEnglish
Taught byMona Khalil
AccessSubscription
Add your review
Add to wishlistAdded to wishlistRemoved from wishlist 0
Add to compare

Data manipulation in SQL picks up where joining and aggregating tables leave off, with queries that must categorize, filter and summarize data in several steps at once. You sort rows into categories with conditional logic, filter one query by the results of another, tidy long queries into named blocks, and calculate running totals and averages across groups of rows. Every exercise draws on the European Soccer Database, so the questions concern matches, teams and rivalries.

What You Will Achieve

  • Build categorical columns, filtered counts and percentages by placing CASE WHEN inside aggregate functions
  • Place subqueries in SELECT, FROM and WHERE clauses to filter rows and add calculated columns
  • Choose between correlated subqueries, nested subqueries and common table expressions for a given data question
  • Compute running totals and partitioned averages with OVER, PARTITION BY and sliding windows


Program Overview

Categorical Variables with CASE WHEN

Conditional logic that turns column values into categories and feeds filtered counts, sums and averages.

  • Basic CASE statements comparing column values
  • Filtering on a CASE statement
  • CASE WHEN with COUNT, SUM and AVG
  • Counts, percentages and fractions

Subqueries, Nested Queries and Common Table Expressions

Where a subquery belongs in a query, how correlated and nested versions work, and how CTEs keep multi-step queries organized.

  • Scalar and list subqueries in WHERE
  • Subqueries in FROM and SELECT
  • Correlated and nested subqueries
  • CTEs and deciding which technique to use

Window Functions and Running Totals

Passing aggregate functions along a dataset with OVER, then combining home and away team CTEs with a window function.

  • The OVER clause
  • PARTITION BY one or more columns
  • Sliding windows
  • Home and away team CTEs with a window function

Certificate Awarded (Paid)

Complete the course to earn it.


Job Outlook

These query techniques are used by data analysts, data scientists and developers who work with large datasets in relational databases and need answers that take several steps to reach.


Our take

Good for: SQL users who want cleaner ways to categorize, filter and summarize data within a single query, and who learn best by repeating each technique on one dataset.

Keep in mind: Though labeled Beginner, it is pitched at an intermediate level for people who already join and aggregate tables, and all practice uses the European Soccer Database.

Bottom line: Its soccer match exercises give CASE logic, subqueries, CTEs and window functions a steady, concrete workout on a single dataset.

Frequently Asked Questions

What dataset do the exercises use?

Every exercise runs on the European Soccer Database. Queries look at matches, teams and rivalries, so each new technique is tried on the same records and the results can be compared across chapters.

What do window functions add?

They pass aggregate functions along the dataset with OVER, so each row keeps its detail. The final chapter builds partitioned averages with PARTITION BY, running totals with sliding windows, and ends by combining home and away team CTEs with a window function.

How does the course help me pick between subqueries and CTEs?

A set of lessons solves one task, retrieving team names, three ways: with a subquery, with correlated subqueries and with common table expressions. A closing lesson then asks which technique suits the situation, so the comparison rests on a worked example.

User Reviews

0.0 out of 5
★★★★★
0
★★★★★
0
★★★★★
0
★★★★★
0
★★★★★
0

No reviews yet. Be the first to review this course.

There are no reviews yet.

Write your review

Reviews can only be posted by registered learners. Log in or create a free account, then you will return here to post.

×

    Report this page
    LiveTalent
    Logo
    Compare items
    • Total (0)
    Compare
    0