Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How To: Group Data and club a field of the group using SQL
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
How To: Group Data and club a field of the group using SQL
Miscellaneous
Thread ID:
00763525
Message ID:
00763525
Views:
129
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
___________________________________________
Next
Reply
Map
View

Click here to load this message in the networking platform