From the course: SQL Essential Training
Unlock the full course today
Join today to access over 24,200 courses taught by industry experts.
Joining many tables - SQL Tutorial
From the course: SQL Essential Training
Joining many tables
- [Instructor] Now that we have identified the fields that we need to respond to the current request from WSDA Music Management, which is what employees are responsible for the 10 highest individual sales. Let's go ahead now and start building out our SQL query that's going to respond to this request. Now, starting with the FROM clause, we can identify the first table that we need which is the Invoice table. We want to alias this Invoice table as i. Next, we want to now join this table to the first table that we need to respond to this inquiry which is the Customer table. So we're now going to put our keyword INNER JOIN and then we specify the Customer table because that's the table we're going to join to. We want to alias this table as c for customer. And now, we are ready for ON keyword, which is going to tell us the exact fields that we're going to be joining the Invoice to the Customer tables. Now, we're going to say…
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
-
-
-
-
-
-
-
-
Joins explained1m 41s
-
(Locked)
How tables share a relationship, part 15m 53s
-
(Locked)
How tables share a relationship, part 24m 22s
-
(Locked)
Simplifying JOINs5m 41s
-
(Locked)
Types of JOINs2m 55s
-
(Locked)
The INNER JOIN2m 20s
-
(Locked)
The LEFT JOIN2m 59s
-
(Locked)
The RIGHT JOIN3m 29s
-
(Locked)
Tables and Entity Relationship diagrams4m 41s
-
(Locked)
Joining many tables5m 45s
-
(Locked)
Solution: Analyzing customer support interactions3m 3s
-
-
-
-
-
-
-
-