> It sort of sounds like you want a "group by CATEGORY", which will give you 
> one 
> row per CATEGORY value, but then you'll need to use aggregate functions 
> (min, max, count, etc) for the rest of the columns in the select list (col1, 
> col2). 

This worked:

SELECT
   MAX(papers.PA_CATEGORY) as PA_CATEGORY,
   MAX(papers.PA_TYPE) as PA_TYPE,
   MAX(papers.ITEM_NUM) as ITEM_NUM
FROM papers
WHERE PA_TYPE = 'DECORATIVE PAPERS'
GROUP BY papers.PA_CATEGORY


Thanks,

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

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:201935
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