Information générale
Catégorie:
Codage, syntaxe et commandes
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.
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement