Closed ratio

0

Please login or register to vote for this query.

(click on this box to dismiss)

Decimal indicating proportion of closed posts to total posts

SharePoint

Q&A for SharePoint enthusiasts

-- Enter Query Title
-- Enter Query Description

declare @closed decimal
declare @total decimal
select @closed = cast(count(*) as decimal) from [Posts] where ClosedDate is not null
select @total = cast(count(*) as decimal) from [Posts]
select @closed/@total

Enter Parameters

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