0
Some help here
These days on vacation I'm making a small database.
I have a problem in the Games table. Ihave each game with the goals and points . How do I to sum the gols and points in the Teams Table.
This don't work.
sum(select Partidos where 'Equipo Local_>' = 'Ptos L') +
sum(select Partidos where 'Equipo Visitante_>' = 'Ptos V')
22 replies
-
Hola Rafael, can you attach your db here to see?
-
said:
This Formula SUM the same for all Teams need, need for each team.You are correct. Why don't you use the relationship link to Partidos? That way you only get related records?
I also don't think you need a new table for each round. The data is the same the only difference is what round you are in. It would make more sense to just have a choice field in Partidos that has group play, rounda eliminatoria, 8tvos, 4rtos, Semis, Final.
Have fun.
-
said:
sum((select Partidos).'Ptos L') + sum((select Partidos).'Ptos V')
but this plase the same result in all game, in the Equipos need the points for each teams.you are still using the select command. switch over to the Partidos link.
Content aside
- Status Answered
- 1 mth agoLast active
- 22Replies
- 76Views
-
4
Following