FIX: Queries with TOP N PERCENT in Subquery May Fail with Error Message 8623 (274467)



The information in this article applies to:

  • Microsoft SQL Server 7.0 Service Pack 2

This article was previously published under Q274467
BUG #: 57941 (SQLBUG_70)

SYMPTOMS

Queries that contain a TOP N PERCENT argument within a subquery may fail to run. For example, the following query:
SELECT * FROM employee
WHERE hire_date > ALL (SELECT TOP 7 PERCENT 1 FROM employee)
				
returns this error message:
Server: Msg 8623, Level 16, State 2, Line 1
Internal Query Processor Error: The query processor could not produce a query plan.

STATUS

Microsoft has confirmed this to be a problem in SQL Server 7.0. This problem has been corrected in U.S. Service Pack 3 for Microsoft SQL Server 7.0. For more information, click the following article number to view the article in the Microsoft Knowledge Base:

274799 INF: How to Obtain Service Pack 3 for Microsoft SQL Server 7.0 and Microsoft Data Engine (MSDE) 1.0

For more information, contact your primary support provider.

Modification Type:MajorLast Reviewed:3/14/2006
Keywords:kbBug kbfix KB274467