Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • This answer is generic from the title, and may be off-topic for the specific query written in the question. Commented Jun 4, 2019 at 14:28
  • 1
    It's more a SQL trap to avoid and in the particular case of a LEFT JOIN, the correct writing is in the first case WHERE b.val =2 or b.val IS NULL;, so A.* is populated. Commented Jun 4, 2019 at 16:03