$ 0 0 Yuck, it needs the order by (added in SQL 2012, but partition works in 2008) to work. Still thinking.