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)
 mean, median, and how the h*** do you find the MODE???

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2001-08-08 : 17:23:36
Justin writes "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???

SQL 7.0, IIS 5.0"
   

- Advertisement -