1
Considering the following tables:
Gambler( id; name number. ) j
equipe_ficticia( id; user name; name; dot_fictitious; ) Ef
equipe_ficticia_player( id; equipeFicticiaId; pilotoId; ) efj
step( id; local; year; state; ) and
dot_fictiti_player( id; player; etapaId; dot_fictitious; ) pfj
In this scenario, several players are part of a team. Each has a score earned in a given stage.
I’d like it to be upgraded to 'f', a Trigger was also fired to search for all players within a given team in the table team team team team team efj and from that it was added to pfj.fictional score_score of each of them accumulating these scores in fictitious Ef.score_score.
His reply was of great value, and I departed from it to find the solution. The only problem in it is that the cursor query had only one filter in the Where clause, which caused all the players who participated in the stage to be searched, summed their points and recorded in the first index of the equipe_ficticia table. In addition to the gp also needed to filter the team, thus dividing the points among the teams according to the players it has. I will post here the final resolution.
– Gabriel Pereira
It’s hard to hit the fly without testing. I’m glad you’ve come up with a solution.
– Victor T.