Post Length versus Count

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

SELECT floor(len(Body)/100)*100 as 'Length', count(*) as 'Number'
FROM Posts
WHERE PostTypeId in (1,2)
GROUP BY floor(len(Body)/100)
HAVING floor(len(Body)/100)>15 and count(*)>10
ORDER BY floor(len(Body)/100) asc

Enter Parameters

Options:
Switch to meta site
loading Hold tight while we fetch your results