Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL COUNT() Problem
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01097166
Message ID:
01097176
Vues:
11
I don't belive such query is a valid VFP query, because calcualted field cannot be used in consequent fields exprerssion. Would this work for you?
   COUNT(*) AS Quantity;
>This query is working in the last version of the app. It now throws the error:
>"SQL: Column 'GROUPING' is not found."
>
>I am running both the previous version and the new one in VFP9.
>
>
>SET ENGINEBEHAVIOR 70
>
>SELECT StatName, ;
>  ShowTitl, ;
>  ClientId, ;
>  TTOD(WeekDate) AS WeekOf,;
>  SUM(Gross) AS Gross,;
>  SUM(DStat_Net) AS DStat_Net,;
>  StatName + ShowTitl AS Grouping,;
>  COUNT(Grouping) AS Quantity;
> FROM Results;
> GROUP BY StatName, ShowTitl, WeekOf;
> INTO TABLE Results2
>
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform