Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Data sorting
Message
From
21/06/2002 21:05:18
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Data sorting
Miscellaneous
Thread ID:
00671286
Message ID:
00671286
Views:
49
I have a table have the follow fields :

id, color1,color2,color3,color4


I need to sort the the records by color. which means record have the same color should group together. eg.

id,color1,color2,color3,color4

1,black
2,blue,green
3,yellow,green,blue
4,green,blue
5,white

so, the result should be

2,blue,green
4,green,blue
3,yellow,green,white,yellow
5,white
4,black

Because record 2,4 have the colors blue & green, and record 3 have green, and record 5 have notting.

Anyone have idea in how the program so like?

TIA.
Next
Reply
Map
View

Click here to load this message in the networking platform