Skip to main content

70-461 - Chapter 4 -- Combining Sets

Feature

Chapter 4: Refresher on Joins

Deepening my understanding of relational database connectivity

1
Chapter
5
Join Types
~30
Minutes Study
Section I

Overview of SQL Joins

I'm continuing my study journey and have reached Chapter 4, which focuses on joins. This is a crucial area in SQL, and revisiting it is helping solidify my understanding.

 

Key Concepts of Joins
  • Inner Join — Returns records with matching values in both tables. It's essential for querying related data.
  • Left Join (or Left Outer Join) — Returns all records from the left table and the matched records from the right table. If there's no match, NULL values are returned for columns from the right table.
  • Right Join (or Right Outer Join) — Similar to the left join, but returns all records from the right table and the matched records from the left table.
  • Full Outer Join — Combines the results of both left and right joins, returning all records from both tables, with NULLs in places where there are no matches.
  • Cross Join — Returns the Cartesian product of the two tables, pairing each record from the first table with every record from the second.
Understanding these joins is essential for constructing efficient queries and manipulating data effectively.
Comparison Summary
Join TypeReturns MatchesReturns Unmatched
InnerYesNo
LeftYesYes (Left side)
RightYesYes (Right side)
FullYesYes (Both sides)
Practical Application

As I practice, I aim to apply these concepts in real-world scenarios to reinforce my skills further. I’ll keep pushing forward and dive deeper into the upcoming chapters.

Stay tuned for my notes on Chapter 5 as this SQL journey continues.

Comments

Popular posts from this blog

Sony MDR-ZX100 vs ZX-110 vs ZX-310 Series Headphones

Gear Review Budget Audio Face-off: Sony ZX Series Review Comparing the ZX-100, ZX-110, and ZX-310 for your everyday carry ~3 Models ~$10–$20 Price 2.5+ Years Longevity Table of Contents ① Build Quality ② Cost Comparison ③ Sound Quality ④ Overall Value ⑤ Upgrade Path Section I Build Quality The Sony ZX series headphones primarily feature a durable plastic construction. My ZX-100 has lasted over 2½ years, enduring countless tosses into my backpack and car without any issues. However, the lower-end ZX-100 and ZX-110 models have a significant downside: poor-quality earpads.   The Earpad Problem Over time, the earpads on the ZX-100 and ZX-110 disintegrate, leaving vinyl flakes that stick to your hair and ears. The ZX-310 comes with upgraded earpads that don't suffer from this problem — a clear win in the build department. Tip: If your earpads start to flake, it is a sign of material degradation; consider replacing the cushions or upgrading to a model with more durable synthetic lea...

MacBook Air 2017 - A1466 - Linux - Project + Install Advice

Linux · Dev Hardware · Field Notes My "New" Linux Laptop 2017 MacBook Air — $120 on eBay, Running Linux Mint $120 Per Unit (eBay) 2× Units Acquired 6–8h Battery Life 2.96 lbs I needed a portable laptop with good battery life and decent specs to write code while outside — mostly small-to-medium Python or ASP.Net projects and a few basic ML models. My HP 2016 i7 is too bulky, the HP i3 is hideous, so I replaced my old Linux laptop with not one but a pair of MacBook Airs picked up on eBay for $120 each. Why two? Originally I got the 256GB MQD42LL/A, and when pricing a 512GB SSD upgrade it was basically the cost of a whole 512GB A1466. Why pay $80 for a drive when $120 gets an entire computer? Eventually I'll get a newer M-series MacBook to fulfill my programming needs — but for $120, this is unreal value. Even after 9 years it looks modern and...

Casio MTD 1010 the $30 Submariner Homage

Diver-Style Watches  ·  Budget Horology Casio MTD-1010 Oyster Quartz  ·  Ref. MTD-1010-1AV The Best Budget Submariner Homage $30 eBay Price 41.5mm Case Size 10 ATM Water Resistance 20mm Lug Width If you're on the hunt for an affordable watch that channels the classic diver aesthetic of the Submariner, look no further than the Casio MTD-1010. Priced at around $30 on eBay, this model offers incredible value for anyone who loves a good deal.   Table of Contents ① Affordable Elegance ② Function Over Frills ③ Best Bang for Your Buck ④ Specs & Practical Tips Section I Affordable Elegance The MTD-1010 strikes a bala...