Progress towards Popular Question, Notable Question, and Famous Question

4

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for programmers

select TOP 500
    Id as [Post Link],
    ViewCount,
    CAST(CONVERT(INT, CAST(ViewCount as float) / 10) as VARCHAR(5)) + '%' as Popular,
    CAST(CONVERT(INT, CAST(ViewCount as float) / 25) as VARCHAR(5)) + '%' as Notable,
    CAST(CONVERT(INT, CAST(ViewCount as float) / 100) as VARCHAR(5)) + '%' as Famous
FROM Posts
WHERE PostTypeId=1 and OwnerUserId=##UserID:int##
ORDER BY ViewCount DESC

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results
:records returned in :time ms:cached