First of all, thanks for this very interesting language :-)
I'm playing with bandicoot and given the following:
rel Seasons {
year: int,
league: string,
team: string,
points: int,
}
with this data:
year:int,league:string,team:string,points:int
2011,A,Vélez Sarsfield,39
2011,A,Lanús,35
2011,A,Godoy Cruz,34
2010,A,Vélez Sarsfield,43
2010,A,Lanús,34
2010,A,Godoy Cruz,30
I would like to obtain this:
team:string,points:int
Vélez Sarsfield,82
Lanús,69
Godoy Cruz,64
That is, a list of teams with the sum of their points.
Is there a way to accomplish that?
Thanks!
It was very useful, that's plain genius :-)
Thanks a lot, I'm having a lot of fun with this.