Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select with additional conditions
Message
 
 
À
14/11/2007 09:37:54
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01268865
Message ID:
01268900
Vues:
13
>Thanks a lot, Tore & Naomi,
>
>Actually I do this to avoid grouping by numerically associated field names like 1,2,3 etc. I have got errors before on this count, but none, right now.What could be the reason, for this?
>
>Regards,
>
>Steve


I thought you can not include sub-selects using SET ENGINEBEHAVIOR 70, since it's VFP9 feature, e.g. this type of select statement

select fields left join (select ... ) as additionalSelect is new in 9, if I recall correctly.

For count to work correctly you must include all non-aggregate fields into the GroupBy clause. You may reference fields either by number or by name.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform