Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL SELECT help needed
Message
From
19/10/2001 08:14:45
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
SQL SELECT help needed
Miscellaneous
Thread ID:
00570729
Message ID:
00570729
Views:
64
Hello,
I need to make a SELECT where i can show the movements and the totals together, like this:
SELECT cod,name,deb,cre,SUM(totdeb-totcre) from tablex

the TOTDEB-TOTCRE are a SUM and the SUM commmand returns only one record, i dont want that, i want all records, like this:

|cod| name | deb | cre | Sald |
-------------------------------
| 1 | aaaa | 10 | 0 | 10 |
| 2 | aaaa | 0 | 15 | -5 |
...
Urgent please, thanks
Rui Trol
Rui Trol
ruitrol@ruitrol.net
http:\\www.ruitrol.net
Next
Reply
Map
View

Click here to load this message in the networking platform