Decimal indicating proportion of closed posts to total posts
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