Create one record from multiple records
- From: "wickedbusa" <wickedbusa@xxxxxxxxx>
- Date: 30 Aug 2006 11:20:04 -0700
Hi everyone. Can someone please give me some pointers on how to
accomplish this task? I have one table with multiple records. Looks
kind of like this:
------------------------------------------------------------------------------------------------------------------
Cust_ID Name Charge Date
1000 XXXXXXXXXX 536.10 06/01/00
1352 XXXXXXXXXX 204.19 07/13/00
1000 XXXXXXXXXX 1055.42 08/15/00
1352 XXXXXXXXXX 978.11 09/14/00
------------------------------------------------------------------------------------------------------------------
What I need to do here is take all of the cust_id's that are the same
(the cust_ID field has multiple entries, just different charges and
dates), add the sum of the charges for a given year (for this example,
dates from 01/01/00 to 12/31/00) and insert the added total into a new
dbf file as one record. For the example above:
------------------------------------------------------------------------------------------------------------------
Cust_ID Name Total Charges Year
1000 XXXXXXXXXX 1591.52 00
1352 XXXXXXXXXX 1182.30 00
-----------------------------------------------------------------------------------------------------------------
Can someone tell me what would be the easiest way to get this done?
There are about 95,xxx records in this table.
Any help would be appreciated.
Arvin
.
- Follow-Ups:
- Re: Create one record from multiple records
- From: Bernhard Sander
- Re: Create one record from multiple records
- Prev by Date: Re: Who has file open in Netware
- Next by Date: Re: Create one record from multiple records
- Previous by thread: scripting.filesystemobject help
- Next by thread: Re: Create one record from multiple records
- Index(es):
Relevant Pages
|