BUG: SELECT-SQL Error When Joining Parent to Two Child TablesLast reviewed: April 24, 1997Article ID: Q157254 |
The information in this article applies to:
SYMPTOMSUsing the SELECT-SQL command with the ON clause, to Join a Parent table to two child tables, may cause the following error:
SQL: Column <column name> is not foundIf the error occurs, then a result set is not created by the query.
CAUSEThe Visual FoxPro query parser looks at the SELECT-SQL queries starting from the innermost part of it. In the case of the SELECT..JOIN..ON statement in the MORE INFORMATION section of this article the parser looks at the following:
INNER JOIN test3 ; ON test1.t1f1 = test3.t3f1 ;The parser cannot resolve the reference for "test1.t1f1" because it is not in scope at this level.
WORKAROUNDYou can use one of the following workarounds to correct this behavior:
STATUSMicrosoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATION
Steps to Reproduce Behavior
When creating a query to Join a Parent table to two child tables using the View Designer, the SQL statement that is built is similar to the one in step 3. Because of this, the View Designer is not able to process the query correctly. The above article discusses the correct syntax for a select based on a parent, child and grandchild relationship.
REFERENCESFor more information, please see the following article in the Microsoft Knowledge Base:
ARTICLE-ID: Q156667 TITLE : Limitations of View Designer vs. CREATE SQL VIEW Command |
Keywords : buglist5.00 FxprgSql kbprg vfoxwin vfpbug5.0a kbbuglist kbprg
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |