SELECT
CASE WHEN ISNULL(A,0)=0 THEN
'0.00%'
ELSE
CONVERT(varchar,CONVERT(decimal(18,2),100 * (ISNULL(B,0)) * 1.0 /A)) +'%'
END AA
FROM TABLE1
SELECT
CASE WHEN ISNULL(A,0)=0 THEN
'0.00%'
ELSE
CONVERT(varchar,CONVERT(decimal(18,2),100 * (ISNULL(B,0)) * 1.0 /A)) +'%'
END AA
FROM TABLE1