Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How To: Group Data and club a field of the group using SQL
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
How To: Group Data and club a field of the group using SQL
Divers
Thread ID:
00763525
Message ID:
00763525
Vues:
128
Hi all

This is a typicaly requirement that I have. I have a table having values as below:
HB         Haematology
TC         Haematology
URM        UrineAnalysis
DC         Haematology
I can group the above like follows:
SELECT * FROM ... GROUP BY 2
but I want the following result in the result:
HB TC DC     Haematology
URM          UrineAnalysis
Is this possible to display in a view. This view will then be used externally by Report Manager for printing purposes. Thus I have to already have formatted the data beforehand as Report Manager won't be able to call VFP UDFs.

Please help.
Regards
Bhavbhuti
___________________________________________
Softwares for Indian Businesses at:
http://venussoftop.tripod.com
___________________________________________
venussoftop@gmail.com
___________________________________________
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform