From the course: Database Foundations: Intro to Databases
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Combine data with JOIN
From the course: Database Foundations: Intro to Databases
Combine data with JOIN
- [Instructor] In a relational database, information is split up across multiple related tables. This provides an efficient way to store the data, but it makes retrieving information a little bit more difficult. Luckily, queries help us piece everything back together again. I'm going to start a new query in the two trees database by pressing control N on my keyboard. That'll pop open a new tab and attach it to the database that I have currently selected over here in the connections pane. Now I want to review information about a single product. I'll say select star from products dot products where the S-K-U or where the SKU is equal to ALB008. This shows me that that product corresponds to the eight ounce size delicate oil in category number one. But what does category number one mean? We stored that information in a separate table. We can query that table to find out. Let's write another query here. This time, we'll select…
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)
Querying data2m 45s
-
(Locked)
Return data with SELECT and FROM6m 36s
-
(Locked)
Filter rows with WHERE4m 4s
-
(Locked)
Sort values with ORDER BY2m 43s
-
(Locked)
Combine data with JOIN4m 46s
-
(Locked)
Limiting the number of rows returned3m 35s
-
(Locked)
Solution: Write a SQL SELECT query6m 1s
-
(Locked)
-
-