Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Group by type
Message
De
30/08/2006 07:27:27
Aaron K. Y. Chu
Health & Care Co. Ltd.
Hong Kong, Hong Kong
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Group by type
Divers
Thread ID:
01149718
Message ID:
01149718
Vues:
55
Dear All,

I would like to group the data by such
select case_no, ;
  sum(paid) as VISA when nType =1 ;
  sum(paid) as MASTER when nType =2 ;
  sum(paid) as CASH when nType =3 ;
  sum(paid) as EPS when nType =4 ;
  FROM payment INTO CURSOR tmp Group by case_no
How can I conditionally sum up the payment amount?!

Thanks in advance!
Best regards,

Aaron Chu

********************************************************

Working with Visual FoxPro is a lot of FUN!

********************************************************
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform