Unqualified AutoId order number time
1 A, 1 2014-11-1
2 B 0, 2014-11-2
3 A 1 2014-11-3
4 A 1 2014-11-4
5 A 0, 2014-11-5
6 B 1 2014-11-6
The statistical data of the same order for the maximum number of qualified, the results are as follows:
Unqualified number order number time
3 A 1 2014-11-3
4 A 1 2014-11-3
5 A 1 2014-11-4
6 B 1 2014-11-6
CodePudding user response:
Said the database type, complex SQL support degree is not the same
CodePudding user response:
Ordinary Delphi + MySQL
CodePudding user response:
Don't know how your number 5 data, ranking function can try
CodePudding user response:
This kind of meaning, difficult ah!
CodePudding user response: