SELECT DEL_CD ,COUNT(DEL_CD) AS COUNT_NO
FROM [DATAStaging].[dbo].[DATASTORE]
GROUP BY DEL_CD
gives me this result
DEL_CD COUNT_NO
0 6442
1 12161
2 2342
But what do I need to do for the script to display the account number as%
Total lines = sum of count_no.
Thanks in advance
source
share