I’m wanting to show the qty available in two different warehouses as two columns. The records should all still come through, regardless of whether there is qty available or not. For this reason I used a left join:

But this left join should only be for records from a specific warehouse, so I added the following condition:

I would expect to see all inventory records, but only some are being returned.
Do I have to use a subquery? What is wrong with my condition that can be improved?





