Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
Database Servers
DB2InformixIngresMS SQLOraclePervasive.SQLPostgreSQLProgressSybase
Desktop Databases
FileMakerFoxProMS AccessParadox
General
General DB TopicsDatabase Theory
Related Topics
Java Development.NET DevelopmentVB DevelopmentMore Topics ...

Database Forum / General DB Topics / General DB Topics / February 2005

Tip: Looking for answers? Try searching our database.

Way to get most occurences in database

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Logan Buesching - 28 Feb 2005 04:44 GMT
Is there a function to get the number of most occurences in a database?
Like, in a table, if i have values:

8
8
8
8
3
3
21
17
8
8
3
4

Is there a way that it can return 8 since it's the most occured number?
Logan Buesching - 28 Feb 2005 04:45 GMT
MySQL is the database

> Is there a function to get the number of most occurences in a database?
> Like, in a table, if i have values:
[quoted text clipped - 13 lines]
>
> Is there a way that it can return 8 since it's the most occured number?
Alan - 28 Feb 2005 05:06 GMT
Being that this is homework, look up COUNT, MAX and GROUP BY.

> Is there a function to get the number of most occurences in a database?
> Like, in a table, if i have values:
[quoted text clipped - 13 lines]
>
> Is there a way that it can return 8 since it's the most occured number?
Logan Buesching - 28 Feb 2005 06:39 GMT
Actually, it's not homework at all, and if you are implying that I am
trying to get the answer to a problem in one of my classes then you need
to not ASSuME.

Anyways, thanks for the info, I got the problem fixed.

> Being that this is homework, look up COUNT, MAX and GROUP BY.
>
[quoted text clipped - 15 lines]
>>
>>Is there a way that it can return 8 since it's the most occured number?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.