viewbins

0

Please login or register to vote for this query.

(click on this box to dismiss)

Code Review

Q&A for peer programmer code reviews

WITH ViewBins AS (
    SELECT 
        FLOOR(ViewCount / 100000) * 100000 AS ViewBin
    FROM 
        Posts
    WHERE 
        PostTypeId = 1  -- 1은 질문을 나타냅니다
)
SELECT 
    ViewBin,
    COUNT(*) AS Frequency
FROM 
    ViewBins
GROUP BY 
    ViewBin
ORDER BY 
    ViewBin

Enter Parameters

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