declare @today as DateTime = (select max(CreationDate) fr...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

declare @today as DateTime = (select max(CreationDate) from Posts);

select distinct Percentile_Cont(.5)
  within group (order by datediff(minute, CreationDate, coalesce(ApprovalDate,RejectionDate))*1.0) over () as "Median time-to-review"
    
from SuggestedEdits s1
where s1.CreationDate > @today-##LookbackDays?365##

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results