I'm looking for a way in MySql to select the most occurring value in one column.
E.g. this table
+-------+-------+
| Name | Signin|
+-------+-------+
| Name1 | 1 |
| Name1 | 2 |
| Name1 | 1 |
| Name1 | 3 |
| Name1 | 2 |
| Name1 | 2 |
| Name2 | 4 |
| Name2 | 5 |
| Name2 | 5 |
| Name2 | 5 |
| Name2 | 5 |
| Name2 | 6 |
+-------+-------+
The column Signin
has two=1, three=2, one=3 sow for the Name1 the most recent value is 2, for the Name2 the most recent value is 5 as in the column Signin are one=4, four=5, one=6
The result I need is like this
Name1 - 2
Name2 - 5