BUG: Incorrect Return of SubSelect in SELECT-SQL Statement (192862)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 3.0
- Microsoft Visual FoxPro for Windows 3.0b
- Microsoft Visual FoxPro for Windows 5.0
- Microsoft Visual FoxPro for Windows 5.0a
- Microsoft Visual FoxPro for Windows 6.0
This article was previously published under Q192862 SYMPTOMS
A SQL Select using the Not In clause with a subquery might incorrectly
return no records.
RESOLUTION
Use a user defined function in the subselect similar to the example below:
SELECT * FROM orders WHERE order_id NOT IN ;
(SELECT order_id FROM orditems WHERE MyFunction(order_id))
FUNCTION MyFunction
LPARAM lx
RETURN .F.
ENDFUNC
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article.
Modification Type: | Major | Last Reviewed: | 5/12/2003 |
---|
Keywords: | kbbug KB192862 kbAudDeveloper |
---|
|