Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Percentages

Author  Topic 

Nick
Posting Yak Master

155 Posts

Posted - 2001-10-22 : 11:31:16
I have a field in one of my tables that I would like to determine the percentage of the time that each unique entry appears in the table.

For instance if the field had the following entries.

Field1
------
black
red
blue
black
black

I would want the report to spit out
black 60%
blue 20%
red 20%

Is there an easy way to accomplish this? Thanks!

   

- Advertisement -