select ((sum(vews.TransactionCount) * 100) / (fa.new_unitspurchased)) as percentage from BingMapsPlatform_Staging.dbo.VEWSDailyAggTrans vews inner join BingMapsPlatform_MSCRM.dbo.FilteredAccount fa on new_accountid = vews.primaryId group by fa.new_unitspurchased
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)