Post Length versus Count


Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow en español

Preguntas y respuestas para programadores y profesionales de la informática

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

Switch sites:
loading Hold tight while we fetch your results