Total de perguntas vs total fechadas

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow em Português

Perguntas e respostas para programadores profissionais e entusiastas

select Total, TotalFechadas,
TotalFechadas * 100 / Total as PorcentagemFechadas
FROM 
  (SELECT count(Id) Total,
    SUM(CASE WHEN ClosedDate IS NOT NULL THEN 1 ELSE 0 END) TotalFechadas
   FROM Posts
   WHERE CreationDate BETWEEN '2019-01-01' AND '2019-05-22') t;

Enter Parameters

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