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)
 return the majority string

Author  Topic 

coonabeast
Starting Member

5 Posts

Posted - 2001-08-03 : 22:42:16
Is there any way to draw information from the database that is seen the majority of the time...for example if I had a table that looked like this...

tblJohnsGrades
[Assignment, Grade]
[Chapter 1, 79]
[Chapter 2, 79]
[Chapter 3, 83]
[Chapter 4, 79]

Would there be any way to have a SQL command that returned '79' because it is the string seen most often in the column Grade???
   

- Advertisement -