Questions I have answered, sorted by question view count

0

Please login or register to vote for this query.

(click on this box to dismiss)

Islam Meta

Q&A about the site for Muslims, experts in Islam, and those interested in learning more about Islam

DECLARE @UserId int = ##UserId##

select ROW_NUMBER() over (order by someQuestion.ViewCount) as rn,
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 main site
loading Hold tight while we fetch your results