convert(decimal(12,2),100* 人數/ (SELECT COUNT(* )
FROM SPL_DIS..PRT429 WHERE 現有會數 BETWEEN 0 AND 10000)) as '佔比(%)'
或是
convert(varchar(14),convert(decimal(12,2),100* 人數/ (SELECT COUNT(* )
FROM SPL_DIS..PRT429 WHERE 現有會數 BETWEEN 0 AND 10000)))+'%' as '佔比(%)'
感謝rogeryao 提供給我兩種方式哦,我都有嘗試跑看看,自己也再做一點微微的調整。