AAD Graph Weighted

1

Please login or register to vote for this query.

(click on this box to dismiss)

GenAI Meta

Q&A for GenAI enthusiasts and practitioners and those interested in learning more about using GenAI tools

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

select top 500 p.Id as [Post Link], 
p.ViewCount, 
p.AnswerCount, 
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
where p.Tags LIKE 'azure-active-directory'

order by Answered, Weight desc

Enter Parameters

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