(Sorry if the title isn't clear I'm not really sure how to phrase it in one question)
Situation: I have a list in sharepoint containing some evaluation of different teams in a company with at least the following fields:
teamname, date of evalution and some fields describing their evaluation
Teams get evaluated multiple times (roughly every 3 months, but this is by no means exact) and as such have many entries in this list
Problem: I want to use CAML to retrieve only the last item corresponding to each of the different teams. is this possible?
Example: given the following table:
+-------+----------+-------+
| team | created | score |
+-------+----------+-------+
| red | 5/7/15 | 10 |
| blue | 23/6/15 | 9 |
| red | 26/3/15 | 8 |
| green | 24/3/15 | 8 |
| blue | 9/1/15 | 6 |
| red | 10/12/14 | 8 |
| green | 8/12/14 | 9 |
| blue | 4/12/14 | 5 |
+-------+----------+-------+
I would like te retrieve:
+-------+---------+-------+
| team | created | score |
+-------+---------+-------+
| red | 5/7/15 | 10 |
| blue | 23/6/15 | 9 |
| green | 24/3/15 | 8 |
+-------+---------+-------+
Is this possible using CAML?