Forum Moderators: open
What I want is to pull stats from just my one table.
Table 1 (Players)
- playerid
- firstname
- lastname
Table 2 (goalinfo)
- goalid
- season
- teamid
- goal
- assist1
- assist2
- time
What I would like to do is join goal, assist1 and assist2 to playerid so I can pull stats for each player (group by playerid?) WHERE season = 2007.
I can't seem to get my head around the joins.
Can someone give me a hand?
Thanks!
Sorry maybe I wasn't clear...
Just take out team and time as they are irrelevant.
Basically I'm inserting playerid into goal, assist1 and assist2.
What I'd like to do is count the number of occurences to calculate seasonal totals.