Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Group by query
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Titre:
SQL Group by query
Divers
Thread ID:
00355597
Message ID:
00355597
Vues:
69
I have a file as follows:

Fld1 Fld2
_____________________________
AA Widgets
AA
AA
AA
BB Spark Plugs
BB
BB
CC
CC Emeralds
DD


______________________________

I want to do following
Select * from MyFile Group by Fld1 into Cursor temp

.. but I want to ensure that I always get the description, if there is one in the result i.e. I need the following:
(I will only have spaces or the same value)

AA Widgets
BB Spark Plugs
CC Emeralds

I'm wondering is there a SQL way of doing this, or maybe some other way ?

Regards,

Gerard
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform