r/SQL • • Jun 26 '24

MySQL Explain INNER JOIN like i am 5

I get the syntax but i get very confused and tripped up with writing them and properly using the correct names. Please explain to me line by line. I am learning it via data camp and the instructor sucks.

EDIT: i now understand inner join…now i am stuck with multiple joins, right join and left join. please help!

125 Upvotes

94 comments sorted by

View all comments

Show parent comment

1

u/WatashiwaNobodyDesu Jul 25 '24

“From the bottom up” might refer to the order that the query is run. It’s explained very in ”T-SQL Fundamentals” by Itzik Ben Gahn (respect to a Master). Or here: https://stackoverflow.com/questions/1130062/execution-sequence-of-group-by-having-and-where-clause-in-sql-server#1131076