Answers vs Golfs in a Language

1

Please login or register to vote for this query.

(click on this box to dismiss)

Science Fiction and Fantasy

Q&A for science fiction and fantasy enthusiasts

-- Number of answers in ##Language##
DECLARE @answers int
SELECT @answers = COUNT(*) FROM Posts
WHERE Body LIKE '%>##Language##</a>%'
AND OwnerUserId = ##UserId##
AND PostTypeId = 2


-- Number of answers golfed in ##Language##
DECLARE @golfs int
SELECT @golfs = COUNT(*) FROM Posts
WHERE Body LIKE '%>##Language##</a>%'
AND Id IN (SELECT PostId FROM Comments
WHERE UserId = ##UserId##
AND Text LIKE '%[1-9]_%yte%')

SELECT @answers as [Answers], @golfs as [Golfs]

Enter Parameters

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