Average response time by tags

0

Please login or register to vote for this query.

(click on this box to dismiss)

The average response time for most popular tags (with at least one vote)

GIS

Q&A for cartographers, geographers and GIS professionals

-- Average response time by tags
-- The average response time for most popular tags (with at least one vote)

declare @limit int = 200;
declare @tag_name nvarchar(35) = 'snowflake-cloud-data-platform';
declare @tag_id int = (select id from tags where tagname = @tag_name);
SELECT
count(distinct Posts.Id) as responses
, avg(datediff(hour,CreationDate, ClosedDate)) as average_response_time_in_hours
    
FROM 
    Posts 
 --   and PostTypeId = 2 --answers only
 JOIN PostTags ON Posts.ParentId = PostTags.PostId
JOIN Tags ON PostTags.TagId = Tags.id
  
WHERE
  Posts.CreationDate >= '2021-05-01'
 -- and ClosedDate <='2021-04-07'
 -- and Tag snowflake-cloud-data-platform

Enter Parameters

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