that's a strange data model... but then maybe your business
logic
dictates it to be so...
what exactly is your requirement? do you need to select all
PK as well,
or just COLOR?
you can try:
SELECT DISTINCT color FROM yourtable - will get you distinct
colors
or
SELECT pk, color
FROM yourtable
GROUP BY color
ORDER BY color, pk
you can also use a simple select query and cfoutput it with a
GROUP
attribute - details are in the cfml reference manual &
livedocs
Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/