Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Syntax between VFP 7 and VFP 8 (Union)
Message
 
 
À
23/10/2003 15:15:14
James Beerbower
James Beerbower Enterprises
Hochheim Am Main, Allemagne
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00841763
Message ID:
00841768
Vues:
24
>When I upgrade to VFP 8 this code does not work any more? Does any one have similar problem?
>
>"Select lastname, firstname from Customer union select lastname firstname from employee order by 1 group by Lastname"
>
>it runs fine in VFP 7 but it said "group by invalid or missing" in VFP 8
>
>Thanks.
>

Steve,
You need to include all no-aggregate fields in the GROUP BY clause. You left out firstname. This is covered in the Behavior Changes Since Visual FoxPro 7 sectino of the VFP 8 help.

HTH.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform