Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Group by type
Message
From
30/08/2006 07:27:27
Aaron K. Y. Chu
Health & Care Co. Ltd.
Hong Kong, Hong Kong
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Group by type
Miscellaneous
Thread ID:
01149718
Message ID:
01149718
Views:
53
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!

********************************************************
Next
Reply
Map
View

Click here to load this message in the networking platform