BUG: IN Subquery Reformats and Is Slower Than an Equivalent Join

ID: Q173314


The information in this article applies to:
  • Microsoft SQL Server versions 6.5, 6.0


SYMPTOMS

BUG #: 17227 (6.5)

A join combined with an IN subquery may cause a reformat access plan and be much slower than the logically equivalent pure join query. In general, an IN subquery should have approximately the same performance as the equivalent join.


WORKAROUND

Express the IN subquery as join, or break it down to several smaller queries using temporary tables, which collectively produce the same result.


STATUS

Microsoft has confirmed this to be a problem in Microsoft SQL Server versions 6.0 and 6.5. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

Additional query words: sub

Keywords : kbusage SSrvGen kbbug6.50 kbbug6.00
Version : winnt:6.0,6.5
Platform : winnt
Issue type : kbbug


Last Reviewed: December 14, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.