View Count of User Answers

0

Please login or register to vote for this query.

(click on this box to dismiss)

Open Data

Q&A for developers and researchers interested in open data

DECLARE @userId int = ##UserId:int?15167500##
DECLARE @top int = ##Top:int?100##

SELECT TOP (@top) someQuestion.id as [Post Link],
someQuestion.viewCount,
someQuestion.commentCount as comms,
someQuestion.answerCount,
someQuestion.favoriteCount as favs,
yourAnswer.Score as yourScore,
someQuestion.tags
FROM Posts yourAnswer 
JOIN Posts someQuestion on yourAnswer.parentID = someQuestion.id 
WHERE yourAnswer.ownerUserId = @userId
ORDER BY viewCount DESC

Enter Parameters

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