Count of favorites that user has created on Stackoverflow. Enter the stackoverflow userid to see that users favorites count...
Q&A about the site for people organizing, marketing or licensing open source development projects
declare @userid int; set @userid = ##UserId## SELECT count(*) as [Favorites Count] FROM Votes, Posts WHERE (Votes.PostId=Posts.Id) AND (Votes.VoteTypeId = 5) AND (Votes.UserId=@userid) Select DisplayName, Id from Users where Id = @userid