May 13, 2021 10:34 am GMT
Original Link: https://dev.to/hoanganhlam/sql-joins-cheat-sheet-18hh
Sql Joins Cheat Sheet
Diagram
SELECT * FROM `A` INNER JOIN `B`
A B
Join | What |
---|---|
Inner join |
|
Left outer join | A +
|
Right outer join | + B |
Full outer join | A + + B |
Example
SELECT * FROM order_items \ LEFT OUTER JOIN orders \ ON order_items.order_id = orders.id
Joins are typically added to SELECT
statements to add more columns and records.
Reference
Original Link: https://dev.to/hoanganhlam/sql-joins-cheat-sheet-18hh
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To