PRB: View Designer Rewrites WHERE Clause (164369)
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 6.0
This article was previously published under Q164369 SYMPTOMS
When a local SQL view is created from a CREATE SQL VIEW command with SELECT
- SQL statement, the parenthetical WHERE clause is rewritten in View
Designer.
CAUSE
According to the SQL lexicon, there is no parentheses support in SQL.
RESOLUTION
In View Designer, the parenthetical HAVING clause is parsed correctly.
Since HAVING sets conditions for the GROUP BY clause similarly to the way
that WHERE sets conditions for the SELECT clause; and HAVING without GROUP
BY has the same filtering effect as WHERE. The workaround for this problem
is to replace WHERE clause with HAVING, whenever it is applicable.
STATUS
This behavior is by design. The view designer was not built to handle
parenthetical WHERE clauses.
Modification Type: | Major | Last Reviewed: | 12/3/2003 |
---|
Keywords: | kbprb KB164369 |
---|
|