select
CAST(Round(count(*) * 100.0 / sum(count(*)), 0) as nvarchar(5)) + '%'
from
db_table_MetaData
That should do the trick.
Basically you take function 08/15 ROUND()to get a numerical value. After that, you add the line to the line nvarchar(x)and add the line to your line. However, I have no way to test my syntax right now.
source
share