Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Group By
Message
De
07/02/2004 13:38:09
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Group By
Divers
Thread ID:
00875188
Message ID:
00875188
Vues:
64
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!
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform