Q&A for Ubuntu users and developers
-- Questions from users signed up in 2012 -- with Rows Indicating Post number per user WITH Row2012 AS ( SELECT Row_Number() OVER (Partition by p.OwnerUserId Order By p.Id asc) Row, u.Id userid, p.Id post, p.ClosedDate FROM Posts p JOIN Users u ON u.Id = p.OwnerUserId WHERE PostTypeId=1 AND DATEPART(YEAR, u.CreationDate)='2012' ) SELECT Top 1000 * FROM Row2012 WHERE Row <11 ORDER BY UserId