From the course: Data Analytics with Observable
Unlock this course with a free trial
Join today to access over 25,300 courses taught by industry experts.
Manipulating data (SQL query) - Observable Tutorial
From the course: Data Analytics with Observable
Manipulating data (SQL query)
- [Instructor] So let's write that SQL Query and join these two tables together. So let me just quickly do that. I'm going to say select h.* and u.* and if you're familiar with SQL, this will be syntax that's familiar. If not, you can look this stuff up, and I'm going to say from happiness as h, join urbanization as u on h.CountryCode = u.CountryCode. Where, let's try this, "urbanization" <= 20. So let's try this and let's see what happens. I'm going to hit Shift + Enter. I have an error, uh-oh, table h, that's my happiness data 'cause I asked it to use that abbreviation here does not have a column named CountryCode, one word. Oh right, because it's actually, where is that one? I'm pulling from up here I think, it's actually Country Code. So I can actually rename it. Shift + Enter. Did that fix it? Oh, same problem. Table u also does not have a column named CountryCode. So let's fix that one. Hmm, oh…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
(Locked)
Getting data into your notebook6m 7s
-
(Locked)
Data tables6m 6s
-
(Locked)
Manipulating data (JavaScript)3m 28s
-
(Locked)
Manipulating data (SQL with DuckDB)5m 12s
-
(Locked)
Manipulating data (SQL query)2m 39s
-
(Locked)
Challenge: Adding data to your notebook1m 47s
-
(Locked)
Solution: Adding data to your notebook3m 14s
-
(Locked)
-
-
-
-