> I have a list of about 6000 skus. Say the SKU numbers look like this: > > 1 > 2 > 3 > 3 > 4 > 5 > 6 > 6 > 7 > 7 > 7 > 7 > 8 > 9 > 10 > > Basically, I want to write a SQL query to find all > occurrences of the duplicate SKU values. Is there any way to > make the SQL server do the filtering and not CF?
SELECT SKU, COUNT(SKU) AS Counted FROM SKU_TABLE GROUP BY SKU HAVING (COUNT(SKU) > 1) That should do it ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

