Skip to main content

SQL for Joining Data

4.6+
60 reviews
Beginner

Join two or three tables together into one, combine tables using set theory, and work with subqueries in PostgreSQL.

Start Course for Free
5 Hours13 Videos53 Exercises359,709 Learners

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

Now that you've learned the basics of SQL, it's time to supercharge your queries using joins and relational set theory. In this course, you'll learn all about the power of joining tables while exploring interesting features of countries and their cities throughout the world. You will master inner and outer joins, as well as self joins, semi joins, anti joins and cross joins—fundamental tools in any PostgreSQL wizard's toolbox. Never fear set theory again after learning all about unions, intersections, and except clauses through easy-to-understand diagrams and examples. Lastly, you'll be introduced to the challenging topic of subqueries. You will be able to visually grasp these ideas by using Venn diagrams and other linking illustrations.
  1. 1

    Introduction to joins

    Free

    In this chapter, you'll be introduced to the concept of joining tables, and will explore the different ways you can enrich your queries using inner joins and self joins. You'll also see how to use the case statement to split up a field into different categories.

    Play Chapter Now
    Introduction to INNER JOIN
    50 xp
    Inner join
    100 xp
    Inner join (2)
    100 xp
    Inner join (3)
    100 xp
    INNER JOIN via USING
    50 xp
    Review inner join using on
    50 xp
    Inner join with using
    100 xp
    Self-ish joins, just in CASE
    50 xp
    Self-join
    100 xp
    Case when and then
    100 xp
    Inner challenge
    100 xp
  2. 2

    Outer joins and cross joins

    In this chapter, you'll come to grips with different kinds of outer joins. You'll learn how to gain further insights into your data through left joins, right joins, and full joins. In addition to outer joins, you'll also work with cross joins.

    Play Chapter Now
  3. 3

    Set theory clauses

    In this chapter, you'll learn more about set theory using Venn diagrams and get an introduction to union, union all, intersect, and except clauses. You'll finish by investigating semi joins and anti joins, which provide a nice introduction to subqueries.

    Play Chapter Now

In the following tracks

SQL Server Fundamentals

Collaborators

Colin Ricardo
Filip Schouwenaars
Dr. Chester Ismay HeadshotDr. Chester Ismay

Educator, Data Scientist, and R/Python Consultant

Chester enjoys helping others get into data science, figuring out how to best practice and improve on their skills, and working as a part-time consultant on R and Python programming projects. He is co-author of "Statistical Inference via Data Science: A ModernDive into R and the Tidyverse" available at moderndive.com and for purchase from CRC Press. He likes leading education and data science teams with the goal of improving best practices based on data from the learning sciences.
See More

Don’t just take our word for it

*4.6
from 60 reviews
73%
20%
3%
2%
2%
Sort by
  • Zilong M.
    about 1 month

    This course with exhaustive video instructions and plenty of practices being included is pretty helpful! The practices are attached with guides which helped a lot too! What astonished me is that it even contains the instruction of how to use the “CASE” order! Well designed course! Thanks to the instructor Mr.Ismay!

  • Janavito S.
    about 2 months

    adad

  • Maureen A.
    2 months

    I really enjoyed the course. I loved how it was self paced and practical. The content is explained very well and it's very detailed. I learnt a lot from it and I can boldly say that I am better at SQL than I was in my college years !

  • Ricky T.
    3 months

    Nice for beginner

  • Jane C.
    3 months

    I am so thankful for SQL Joining for Data. Slowly but surely, I will become a SQL programmer, and so it is, Amen!

  • Loading ...

"This course with exhaustive video instructions and plenty of practices being included is pretty helpful! The practices are attached with guides which helped a lot too! What astonished me is that it even contains the instruction of how to use the “CASE” order! Well designed course! Thanks to the instructor Mr.Ismay!"

Zilong M.

"adad"

Janavito S.

"I really enjoyed the course. I loved how it was self paced and practical. The content is explained very well and it's very detailed. I learnt a lot from it and I can boldly say that I am better at SQL than I was in my college years !"

Maureen A.

FAQs

Join over 11 million learners and start SQL for Joining Data 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.