SQL queries, part II
Table of contents:
- Using AVG exampele I
- Using AVG exampele II
- Table aliases example I
- Column aliases example II
- Inner join
- Left outer join
This post is the continuation of the previous post. Below is the database schema:
-
Using AVG exampele I
-
Using AVG exampele II
-
Table aliases example I
-
Column aliases example II
-
Inner join
-
Left outer join
A LEFT (OUTER) JOIN returns
— SQL Daily (@sqldaily) September 16, 2021
All the rows from the table on the left side of the join
Any rows matching the join criteria from the table on the right
If there are no matching rows in the right table, the result show NULL for these columns
A RIGHT JOIN does the opposite#SQL pic.twitter.com/hQRMCvza1v
Reference:
My site is free of ads and trackers. Was this post helpful to you? Why not
Disqus is great for comments/feedback but I had no idea it came with these gaudy ads.