From the course: Fundamentals of Data Transformation for Data Engineering
Unlock the full course today
Join today to access over 24,100 courses taught by industry experts.
Joins and comparisons - SQL Tutorial
From the course: Fundamentals of Data Transformation for Data Engineering
Joins and comparisons
- [Instructor] In this lesson, we're going to jump into joins and comparisons, and those are ways of filtering your data and comparing them for future data transformation steps. So we'll start by loading our data set, and in our previous examples, we used where to filter queries, but we can also do that with joins. But there's a caveat, and that is that we need to be very careful with how joins work. So if I run this query, we're selecting parks, we're joining in our visitor centers table. And you can imagine there might be many visitor centers in one park. That is, there's a one-to-many relationship between parks and visitor centers, and we're joining those in on parkcode. But more importantly, we're filtering where the designation equals national monument, and the visitor center is a passport stamp location. Now, there's an important piece here. Also, I'll call out that I use this one equals one syntax quite often. Obviously, one does in fact equal one. That's just to be sure that…
Contents
-
-
-
-
(Locked)
DuckDB basics and query structure4m 2s
-
(Locked)
Wrangling unstructured data10m 30s
-
(Locked)
Joins and comparisons10m 19s
-
(Locked)
Aggregations10m 16s
-
(Locked)
Windows functions: A quick refresher5m 41s
-
(Locked)
Window functions10m 15s
-
(Locked)
Advanced filters3m 9s
-
(Locked)
Advanced joins8m 12s
-
(Locked)
Lambdas and UDFs10m 3s
-
(Locked)
Data generation4m 52s
-
(Locked)
SQL challenge2m 37s
-
(Locked)
SQL solution13m 8s
-
(Locked)
-
-