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.