Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is there a way to SUM alike records with a SELECT statem
Message
From
13/10/2000 14:12:02
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
13/10/2000 13:00:23
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00429156
Message ID:
00429277
Views:
24
>>>In vfp60, Is there a way to SUM alike records with a SELECT statement?
>>>I have a table with a field called part_number. This table is ORDER BY part_number...There are many records that contain the same
>>>part_number values and I want to SUM these records so I have
>>>a DISTINCT on part_number and the part_number values will be totaled and represented in one record for each part_number...any ideas?
>>
>>select part_number, sum(numfield) as myTotal from mytable group by part_number
>>Cetin
>--------
>Hi Certin....Nice to hear from you again...my numfidld is non-numeric...
>and the SUM will not work...:)

Thanks Rob. Then what will you sum ? You mean something like distinct row or what ? Or you mean a cross-tab ?
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform