Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sql coding for aggregates by level
Message
De
18/06/2006 20:56:40
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Sql coding for aggregates by level
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01129875
Message ID:
01129875
Vues:
52
I have a file with year,policy number,est_prem. Another file contains claims and has year, policy number and claim_amt fields. I want to sum and count the est_prem and claim by various levels of est premium for a particular year as follows:
est prem level       Est. Prem    Claims 
                      #     $     #   $
0-5,000  
5,001-10,000
10,001 - 20,000
etc
etc
I have done this in the past with several sql statements and a scan but I am looking for a better way.

Any help appreciated.
Thanks
Gaylen
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform