Champions count and sum
Team Table (36 records): I have "Team ID" and "Team Name", PJ, PG, PP, GG GC.
Match Table (144 records): This table I have the following fields:
"Home Team" (related to the Team table).
"Away Team" (related to the Team table).
"Match Status" (indicating whether the match is finished or not).
How can I do to count the total games by team, and sum the goals for and against.
10 Antworten
-
How about 4 formula fields?
Lets assume in Team you have the relation "Home" and "Away" towards the "Match" Table then you can go with
cnt(Home) or cnt(Away) to count the number of games and sum(Home.Goalfor) and sum(Away.Goalagainst)
Does that work for you?
-
Hi Peter.
I have relationship between the Teams (Eqipos) to Match (Partidos).
But I miss somethig.
-
maybe this
cnt('<_Partidos1'.'Ptos L') + cnt('<_Partidos2'.'Ptos V')
will do it?
Saludos
-
Thanks
Content aside
- Status Answered
- vor 3 MonatenZuletzt aktiv
- 10Antworten
- 38Ansichten
-
3
Folge bereits