Hi,
here what I want to do :
I have a collection with some results of a sport competition. Some do 4 competitions a year, some do just one. So, my collection (colCompetitions) has those fields :
1- Index
2- CompetitorName
3- Result
4- Category
5- Season
So I want a form, that will be showing the best result of a competitor in a Specific Category in a Specific Season.
The collection could look like this :
1- Ariel - 5 - Champ - 2018-2019
2- Jasmine - 4.5 - Champ - 2018-2019
3- Tiana - 6 - Champ - 2018-2019
4- Ariel - 5.5 - Champ - 2018-2019
5- Pocahontas - 3 - Champ - 2018-2019
6- Jasmine - 4 - Champ - 2018-2019
7- Jasmine - 5 - Champ - 2017-2018
8- Ariel - 4 - Diamond - 2018-2019
9- Pocahontas - 4.2 - Champ - 2018-2019
10- Ariel - 5.4 - Champ - 2018-2019
So the result that I want in a list would be (With those filter = Champ, 2018-2019, sorted by Result):
1- Tiana - 6
2- Ariel - 5.5
3- Pocahontas - 4.2
4- Jasmine - 4
I think in SQL it would be a function called MAX. But can’t find this in wix java. I have some notion in coding, but like 20 years ago :), and did it only at school. I want it efficient, as the collection could be over 4K lines per season. I’ll see how it goes, but I’ll maybe seperate in season if its too big and too slow. But for the moment, if I can figure this code and if it is simple to do, would be apreciated.