General information
Category:
Coding, syntax & commands
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only