Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Group by type
Message
 
 
À
30/08/2006 08:30:08
Aaron K. Y. Chu
Health & Care Co. Ltd.
Hong Kong, Hong Kong
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
01149718
Message ID:
01149731
Vues:
8
>Is that what you means? If so, there is an error "SQL:Grouping clause is missing or invalid"
>
>
>select case_no, eng_name, chi_name, SUM(charge) as sCharge, 
sum(IIF(Paid_Type="$", paid, 0.00)) as CASH, 
sum(IIF(Paid_Type="E", paid, 0.00)) as EPS, sum(IIF(Paid_Type="V", paid, 0.00)) as Credit, 
SUM(outstanding) as outstand;
> FROM income_log into cursor income_output group by 1 order by 1
>
>
>OR I need to put the eng_name, chi_name into grouping?!
>
>
>select case_no, eng_name, chi_name, SUM(charge) as sCharge, 
sum(IIF(Paid_Type="$", paid, 0.00)) as CASH, 
sum(IIF(Paid_Type="E", paid, 0.00)) as EPS, sum(IIF(Paid_Type="V", paid, 0.00)) as Credit, 
SUM(outstanding) as outstand;
> FROM income_log into cursor income_output group by 1,2,3 order by 1
>
>
>or is it a better way?!

What seems to be a problem with this one?
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform