I have had several hundreds of players play a game I created, and each team's score is located down this path on my firebase structure:
myref.firebaseio.com/UK/date here/Tournaments/time here/player name here/Final Score
The last key is "Final Score", followed by the team's score as the value.
The problem is that the date here, time here, and player name here nodes are different depending on the day and time the game was played and the name the player chose.
I want to simply extract each score from all the players and add them in an array, in order to calculate the average.
I am looking for a way to tell the query "find me a "Final Score" key, several sub nodes down, 3 of them with unknown names, and get me the value. Do this for all entries in the database"
I have managed to go 1 level down with an unknown path , but no more than 1 level.
Reading about deep queries did not help me. Is it possible to do this, or I will have to change my database structure to achieve this?
Thanks in advance for any help