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 10 *
WHERE (DisplayName = @UserId
OR (ISNUMERIC(@UserId) = 1 AND CAST(Id AS varchar(40)) >= @UserId))
ORDER BY Id DESC