Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GROUP BY clause ignored in VIEWS with UNION Clause
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
GROUP BY clause ignored in VIEWS with UNION Clause
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows 7
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01575879
Message ID:
01575879
Vues:
46
Due to backward compatibility issues with a large Application, am running with SET ENGINEBEHAVIOR 70.

Am attempting to create a View with a UNION clause.

1. The first SQL Statement is a simple SELECT * FROM View2 where View2 is another View containing a GROUP BY Clause
2. A UNION Clause is used with a 2nd SQL Statement.

Am able to successfully create the View programmatically. However, when I run the View, all records from View2 display - as if the GROUP BY Clause does not execute even though browsing View2 displays correct info.

It appears that running a View with a UNION clause will not execute a GROUP BY in any component. The View executes and ignores the component GROUP BY clause.

Anyone seen this?
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform