Alexander Obregon's Substack

Share this post

User's avatar
Alexander Obregon's Substack
When Moving a Filter Broke My Join
Copy link
Facebook
Email
Notes
More
Behind the Scenes

When Moving a Filter Broke My Join

Alexander Obregon's avatar
Alexander Obregon
May 28, 2025
∙ Paid

Share this post

User's avatar
Alexander Obregon's Substack
When Moving a Filter Broke My Join
Copy link
Facebook
Email
Notes
More
Share

While working through examples for the JOINs SQL article, I thought I had a simple LEFT JOIN doing what I needed. I was trying to pull a list of products, keeping them all in the result, but only showing stock data if the product had more than zero units. Easy enough, right?

So I dropped in this query:

It looked good at first. But the more I poked at it, …

Keep reading with a 7-day free trial

Subscribe to Alexander Obregon's Substack to keep reading this post and get 7 days of free access to the full post archives.

Already a paid subscriber? Sign in
© 2025 Alexander Obregon
Privacy ∙ Terms ∙ Collection notice
Start writingGet the app
Substack is the home for great culture

Share

Copy link
Facebook
Email
Notes
More