Q&A for professional and enthusiast programmers
select * from posts where posts.ViewCount < 51365 and posts.ViewCount >= 40184 order by ViewCount DESC; --select top 50000 ViewCount,count(*) from posts group by ViewCount having ViewCount < 51365 order by ViewCount DESC