Thank you...that was it! -----Original Message----- From: Jochem van Dieten [mailto:[EMAIL PROTECTED] Sent: Saturday, July 19, 2003 8:48 AM To: CF-Talk Subject: Re: SQL Question: (Brainfart Saturday...)
Che Vilnonis wrote: > > 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. SELECT SKU, Count(SKU) AS occurences FROM table GROUP BY SKU HAVING Count(SKU) > 1 Jochem ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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

