Home > database > And the amount of codes to the number of times a day at most
And the amount of codes to the number of times a day at most
Time:10-02
Date name sign in Zhang y 2016-01-01 Zhang y 2016-02-02 Zhang y 2016-01-02 Zhang y 2016-01-02 Zhang y 2016-01-02 Zhang y 2016-01-03 Zhang y 2016-01-04 Zhang y 2016-01-04 Zhang y 2016-01-04 Zhang y 2016-01-04 Zhang y 2016-01-04 The 2016-02-02 li bai y The 2016-01-03 li bai y The 2016-01-03 li bai y And the 2016-01 month window to a few times is most times? Results in January zhang signed in the most is five times a day, li bai 2 times
CodePudding user response:
select name, count (*) number The from t Where.. Group by name The order by 2 desc