I have this mysql code that gets the value of the field that contains most number of results in the database.
Code:
select value, count(*) as selectedvalue_count from one group by
selectedvalue order by selectedvalue_count desc
this works fine but it doesn't take into considerations if there are two or more values having the same number of records in the database. any help?