Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Query with a running total
Message
De
19/07/2006 10:22:05
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
19/07/2006 09:12:55
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01137566
Message ID:
01137601
Vues:
20
>Hi all,
>
>Does VFP9 offer any simple solutions to the following situation?
>
>I am trying to create a view, which among others, has 4 fields- Date, Debit, Credit, and Balance-(which is the present running cash balance). For the Balance, it requires the (sum of all credits)-(sum of all debits), but only upto that date, or entry. My problem is, that when I specify it that way, I get only one row in the view, showing the total of all debits and all credits for the entire table. Could someone help me with this one ? Thanks.
>
>Regards,
>
>Steve.

I assume you need that for a report. I think the running total should be handled in the report (through report variables), not in the SELECT statement.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform