how long before I get tag badges?
Q&A for professional and enthusiast programmers
-- How many upvotes do I have for each tag?
-- how long before I get tag badges?
DECLARE @UserId varchar(40) = ##UserId##
SELECT top 20 *
WHERE Id >= Cast(@UserId AS Int)
OR DisplayName = @UserId
ORDER BY Id DESC