Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Group By
Message
 
 
To
07/02/2004 13:38:09
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
00875188
Message ID:
00875191
Views:
32
This message has been marked as the solution to the initial question of the thread.
It can be done with UDF. You pass it all the key's and it returns "SUM" ("Opt1, opt4, opt6, opt11, ..."). Check Re: How To: Group Data and club a field of the group using S Thread #763525


>Hello EveryBody.
>
>i need to group (by upcharges for frames) my frame options. so i end up with 1 record for each different price up-charge. the following works great for this.
>
>sele ;
>      a.* ;
>   from partoptions a ;
>   group by a.option, a.upchoice, a.priceadj
>
>however, i also need in each row to contain all of the different option-codes for that 'group' combined in one field. something simular to the sum(), but, i don't need it added up (it's a character field anyway), i need it combined in a string (like "Opt1, opt4, opt6, opt11, ...").
>
>any ideas other then to scan through the table and collect?
>
>thanks for all your help as always!
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform