Intermediate Joins in SQL
In the second lesson of this SQL Intermediate course, you’ll focus on how to join data in SQL using more than one table, and unlocking the true power of SQL. Often times when you’re working with SQL, the data you’d like to be working with is spread out across multiple tables.
You’ll learn about the four basic types of joins: the inner join, the outer join, the left join, and the right join. You will learn concepts such as how to use recursive joins, how to perform pattern matching using LIKE and ILIKE for advanced filtering, and the case statement, which is the clause to perform the same function such as if and else in Python. In addition, you will have practice using each of these concepts along with writing advanced joins so that you can feel confident in your SQL ability so you can be on your way to becoming proficient in writing queries to solve any problem or answer any question.
To facilitate your learning of joining multiple tables, you’ll be working with a version of the Chinook database, a music collection involving track name, album name, artist name, genre, and number of tracks purchased.
- Understand how to write queries that join three or more tables.
- Learn to use recursive joins, pattern matching, and the case statement.
- Practice writing advanced joins.
- Working With Larger Databases
- Joining Three Tables
- Joining More Than Three Tables
- Combining Multiple Joins with Subqueries
- Recursive Joins
- Pattern Matching Using Like
- Generating Columns With The Case Statement
- Next Steps