AAD Graph Weighted


Please login or register to vote for this query.

(click on this box to dismiss)

The Workplace Meta

Q&A about the site for members of the workforce navigating the professional setting

create table #unanswered (Id int primary key, Total int)

insert #unanswered
select q.Id as Id, 
case when q.AcceptedAnswerId is null then -10 when q.AcceptedAnswerId is not null then 0 end as [Total]
from Posts q
where q.Tags = 'azure-active-directory'

select top 500 p.Id as [Post Link], 
case when p.AcceptedAnswerId is null then 'false' else 'true' end as [Answered],
((p.ViewCount * 0.01) + p.AnswerCount + u.Total) as Weight, Tags
from Posts p

join #unanswered u on u.Id = p.Id
join PostTags pt on pt.PostId = p.Id
join Tags t on t.Id = pt.TagId
where t.TagName = 'azure-active-directory'
order by Answered, Weight desc

Enter Parameters

Switch sites:
loading Hold tight while we fetch your results