J
Jason Lepack
So here's what I'm up to.
I save the webpage from USA Today.
http://www.usatoday.com/sports/hockey/nhl/skaters.htm
I click the button and it checks to see if there are any new players,
any players have changed teams, etc.
Then the stats get imported into the table.
Fields: playerid, GP, G, A, PTS, etc.
Now, a players stats only get imported if the GP is a new number. If
Darcy Tucker's last entry had 10 GP and the new record has 10 GP, then
it doesn't create a new record.
What I need is a query to calculate a players stats for each game.
We'll work with this data:
playerid,GP,G,A
1,1,2,3
1,2,3,4
1,3,5,4
The result should be:
playerid,GP,G,A
1,1,2,3
1,2,1,1
1,3,2,0
Cheers,
Jason Lepack
I save the webpage from USA Today.
http://www.usatoday.com/sports/hockey/nhl/skaters.htm
I click the button and it checks to see if there are any new players,
any players have changed teams, etc.
Then the stats get imported into the table.
Fields: playerid, GP, G, A, PTS, etc.
Now, a players stats only get imported if the GP is a new number. If
Darcy Tucker's last entry had 10 GP and the new record has 10 GP, then
it doesn't create a new record.
What I need is a query to calculate a players stats for each game.
We'll work with this data:
playerid,GP,G,A
1,1,2,3
1,2,3,4
1,3,5,4
The result should be:
playerid,GP,G,A
1,1,2,3
1,2,1,1
1,3,2,0
Cheers,
Jason Lepack