BUG: Boolean Expression w/ Subquery and IN Returns ErrorLast reviewed: April 28, 1997Article ID: Q88180 |
The information in this article applies to:
SYMPTOMSA query of the form
select "Yes" where ((select title_id from titles where title like "The Busy E%") in ("BU1032", "abcd"))returns error 512, which says:
Subquery returns more than one value. This is illegal when the subquery is used as an expressionActually, the subquery returns exactly one value, BU1032. The query works correctly if the IN list has just one member.
CAUSESQL Server incorrectly analyzes the boolean expression, believing that the subquery returns more than one value.
STATUSMicrosoft has confirmed this to be a problem in SQL Server version 4.2. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
|
Additional query words: Transact-SQL
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |