% of closed and deleted questions by tag

0

Please login or register to vote for this query.

(click on this box to dismiss)

Board and Card Games

Q&A for people who like playing board games, designing board games or modifying the rules of existing board games

select
  *,
  format(cast(Closed as float)/cast(Total as float) * 100,'N2') as [% Closed],
  format(cast(Deleted as float)/cast(Total as float) * 100,'N2') as [% Deleted]
from
(
  select
    sum(iif(ClosedDate is not null, 1, 0)) as Closed,
    sum(iif(DeletionDate is not null, 1, 0)) as Deleted,
    count(*) as Total
  from
    postswithdeleted
  where
    (1=1)
    and posttypeid = 1
    and tags like '%<' + ##Tag:string## + '>%'
) as sub

Enter Parameters

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