select TOP 500 Id as [Post Link], FavoriteCount, CAST(CON...

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 TOP 500
    Id as [Post Link],
    FavoriteCount,
    CAST(CONVERT(INT, CAST(FavoriteCount as float) * 4) as VARCHAR(3)) + '%' as Favorite,
    CAST(FavoriteCount as VARCHAR(3)) + '%' as Stellar
FROM Posts
WHERE PostTypeId=1 and OwnerUserId=##UserID:int## and FavoriteCount > 0
ORDER BY FavoriteCount DESC

Enter Parameters

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