Hi,
I have the following table structures:
site_players
id,
name
site_played
id,
players_id,
match_id,
goals,
assists,
pens
site_match
id,
team
In site_players I have a list of team members, in site_match I have a list of all games that have been played. I want to be able to query site_played the following:
total number of games played, total goals, total assists and total pens.
I've been looking at creating a view for this as I want to be able to order the query based on goals, assists or pens etc.
Any help would be appreciated!!