I have a database with information stored, and one of the columns of data is "data_date" in "YYYY-MM-DD" format. Some dates have multiple rows of data. How can I select the most frequently occurring date? I want to figure out which date is most "popular", return that date, and how many rows there are of that date, without ever looking at the database itself.
So...
Basically I do not know how to group a selection by column, and then count the largest group.
Will rep for help. Thanks.
So...
PHP:
$query = mysql_query("SELECT * FROM $db ORDER by data_date ASC");
// now how do I do what I want here?
Basically I do not know how to group a selection by column, and then count the largest group.
Will rep for help. Thanks.
Last edited:





