Thanks for the reply
below is the query
declare @Total int
declare @Accepted int
select @Total=count(*), @Accepted=sum(case LastState when 0 then 0 else 1 end)
from fn_rbac_ClientAdvertisementStatus(@UserSIDs)
where AdvertisementID=@Deployment
select LastAcceptanceStateName as C013, count(*) as C015,
ROUND(100.0*count(*)/@Total,1) as C016,
stat.AdvertisementID, advert.PackageID, advert.CollectionID
from fn_rbac_ClientAdvertisementStatus(@UserSIDs) stat
join fn_rbac_Advertisement(@UserSIDs) advert on stat.AdvertisementID = advert.AdvertisementID
where stat.AdvertisementID=@Deployment
group by LastAcceptanceStateName, stat.AdvertisementID, advert.PackageID, advert.CollectionID
We need exclude the below columns from report
Exclude columns
Last acceptance Mesage ID
Last acceptance Mesage Name
Last acceptance Mesage Status Time
Last Execution Result
Last Execution User Context
Use Name
Client Type
Use Domain
Include columns
package name
Regards,
Siva.V