Using Access

What I need in sorta English

Select
   distinct (CATEGORY),  --- just this one distinct (red, blue, green)
   col1, col2, col3m col4  --- and these too, but ain't gotta be distinct
WHERE
   TYPE = 'myTYPE'
   order by col4


Or basically, if type is a "CAR", then show one red car, one blue car, 
one green car ... regardless of how many there actually are.

I need to do it in the SQL Select statement, not on the output side 
though...


-- 
-----------
Les Mizzell

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:201914
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to