SQL Joins: A Guide and Examples

preview_player
Показать описание

SQL joins are a commonly used feature when writing queries. They let you combine two (or more) tables together in your SQL query and see a single set of results.

In this video, you'll learn a bit more about what SQL joins are, why they are needed, the different types of joins, and examples of each in a SELECT query.
I'll also share a few tips on working with joins and things to avoid.

Related videos:

Timestamps:
00:00 Start
00:16 What is a join?
00:48 Sample tables
01:38 Start of query
01:58 Inner Join
04:49 Left Outer Join
06:10 Right Outer Join
07:10 Full Outer Join
07:38 Joins are not bad
08:16 Using keyword
08:46 Natural Join
09:17 Joins in a Where clause
Рекомендации по теме
Комментарии
Автор

I just love the way you break down the hardest topics & concepts so clear, easy to understand with simple examples . Thank you so much. ❤❤❤❤

anjumshaikh
Автор

Extra thanks for the subtitles! Even if I don't have a listening issue, they help understanding better

obscuredbyclouds
Автор

Damn im learning selftaught full stack development and already learned MERN stack but felt the need to learn SQL, and im loving it, this channel is so crystal clear with all the topics that i encounter when practicing with my project and want to learn. A great thing about SQL is that is an ancient concept and will prevail even longer so all this information will be valuable for years to come :)

RainNColer
Автор

most intriguing was the use of WHERE clause to write a JOIN, and most of the useful was the LEFT vs RIGHT (that are the same but with different positions of the tables related). Thanks.

aiasaiascon
Автор

You advised against using the USE keyword because it might break your query if your field name changes. Wont this still be the case if you use the ON keyword to specify field names?

codewithtae
Автор

So correct me if I'm wrong these two tables break referential integrity rules, but joins still possible?

parko
Автор

Thank you
sorry I didn't find a link of the video that contains join three tables or more

RDL-ywwy
Автор

can we really join without foreign key -- primary key relation?

spyrex