How does the IN predicate work in SQL?

后端 未结 7 1133
野性不改
野性不改 2020-12-06 16:01

After prepairing an answer for this question I found I couldn\'t verify my answer.

In my first programming job I was told that a query within the IN ()

相关标签:
7条回答
  • 2020-12-06 16:52

    Most SQL engines nowadays will almost always create the same execution plan for LEFT JOIN, NOT IN and NOT EXISTS

    I would say look at your execution plan and find out :-)

    Also if you have NULL values for the Table1Id column you will not get any data back

    0 讨论(0)
提交回复
热议问题