AAD Graph Weighted


Please login or register to vote for this query.

(click on this box to dismiss)


Q&A for software developers, mathematicians and others interested in cryptography

DECLARE @Keywords nvarchar(100) = '%##Keywords##%'

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 100 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

FROM Posts p
JOIN #unanswered u ON u.Id = p.Id

WHERE p.Tags LIKE '%azure-active-directory%' AND p.Body LIKE @Keywords
ORDER BY Answered, Weight desc

Enter Parameters

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