Ben Nadel at the NYC Tech Talk Meetup (Aug. 2010) with:
( photo link )
Posted on Jan 30, 2008 at 1:21 AM
Hi, There is a good sample selecting top n rows for each group using ROW_NUMBER() OVER (PARTITION BY column1 ORDER BY column2 DESC), look at http://www.kodyaz.com/articles/top-n-random-r... read more »
Ben Nadel © 2014.
All content is the property of Ben Nadel and BenNadel.com