Skip to main content

Course

Intermediate SQL

Basic5 hr

Accompanied at every step with hands-on practice queries, this course teaches you everything you need to know to analyze data using your own SQL code today!

Sql4 hr - 6 hr3,950 XP510K+Statement of accomplishment

Create Your Free Account

Continue with Google
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

Training a Team?

Try for Business

Course Description

SQL is widely recognized as the most popular language for turning raw data stored in a database into actionable insights. This course uses a films database to teach how to navigate and extract insights from the data using SQL.

Discover Filtering with SQL

You'll discover techniques for filtering and comparing data, enabling you to extract specific information to gain insights and answer questions about the data.

Get Acquainted with Aggregation

Next, you'll get a taste of aggregate functions, essential for summarizing data effectively and gaining valuable insights from large datasets. You'll also combine this with sorting and grouping data, adding another layer of meaning to your insights and analysis.

Write Clean Queries

Finally, you'll be shown some tips and best practices for presenting your data and queries neatly. Throughout the course, you'll have hands-on practice queries to solidify your understanding of the concepts. By the end of the course, you'll have everything you need to know to analyze data using your own SQL code today!

Feels like what you want to learn?

Start Course for Free

What you'll learn

  • Identify and apply filtering techniques using WHERE, AND, OR, BETWEEN, and LIKE operators.
  • Differentiate between aggregate functions (SUM, AVG, COUNT, etc.) and arithmetic operators in SQL queries.
  • Recognize the correct use of WHERE versus HAVING when filtering grouped data.
  • Define best practices for query readability using style guides, indentation, and aliasing.
  • Evaluate and organize query results by applying sorting, grouping, and rounding techniques.

Prerequisites

Curriculum

Course outline

1

Data Aggregation

  • Summary Values

    You will learn to summarize data by calculating key statistics like totals, averages, and counts, enabling you to extract meaningful insights from raw data.

  • One Grouping Column

    You will learn to break down summary statistics by categories, enabling you to compare metrics across different groups and discover patterns in your data.

  • Multiple Grouping Columns

    You will learn to analyze data across multiple dimensions at once, enabling you to discover nuanced patterns by breaking down summaries along several categories simultaneously.

2

Data Transformation

  • Basic Transformations

    You will learn to create new columns by combining and calculating values from existing data, enabling you to derive ratios and other metrics not available in the original dataset.

  • Complex Transformations

    You will learn to handle multi-step calculations and compute percentages of totals, enabling you to build complex metrics that depend on intermediate results.

3

Data Filtering

  • Basic Filtering

    You will learn to extract specific rows from your data based on conditions, enabling you to focus your analysis on relevant subsets and handle missing values and text patterns.

  • Multiple Conditions

    You will learn to filter data using multiple criteria at once, enabling you to extract precisely the rows you need by combining conditions with AND and OR logic.

  • Complex Filtering

    You will learn to simplify complex filtering by breaking conditions into separate columns, and to extract the opposite of a filter result, making your analysis more transparent and verifiable.

4

Conditional Operations

  • Conditional Transformation

    You will learn to apply different calculations based on specific conditions, enabling you to standardize values, classify data into categories, and handle varied scenarios within your data.

  • Conditional Aggregation

    You will learn to calculate summaries that include only values meeting specific criteria, enabling you to compute nuanced metrics like "average of delayed flights only" within each group.

S

Intermediate SQL

Course
Complete

Earn Statement of Accomplishment

Enroll Now

Grow your data skills with DataCamp for Mobile

Make progress on the go with our mobile courses and daily 5-minute coding challenges.