Richard,

I think this will work (untested, assumes SQL Server):

select t.ID
from mytable t
inner join mytable a on t.id = a.id and a.value = 'A'
inner join mytable b on t.id = b.id and b.value = 'B'
inner join mytable c on t.id = c.id and c.value = 'C'

HTH,
Carl

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347715
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to