Progress towards Popular Question, Notable Question, and Famous Question

7

Please login or register to vote for this query.

(click on this box to dismiss)

Drupal Answers

Q&A for Drupal developers and administrators

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 to meta site
loading Hold tight while we fetch your results