Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sum a character field with a SELECT command?
Message
 
 
À
15/07/2000 16:49:16
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00392923
Message ID:
00392924
Vues:
8
>Is it possible to "sum" the contents of a character field within a SELECT - SQL command. i.e. Say I have 3 records with a field called fruit, with values of "apple", "pear","banana" - can I produce a cursor that contains a sumation field containing "apple pear banana"?
>
>Thanks in advance.

Not without creating a UDF to concatenate the strings. It might be easier to use SCAN...ENDSCAN to loop through the records and build the new string.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform