Speedy
10-10-2005, 08:40 PM
Hi,
first of all I hope I post this in the right thread, second of all I hope my title is somewhat close to what I'm asking for ;)
What I have is an asp page connected to an Access DB that contains
2 tables:
tbl_player and tbl_res
tbl_player [Id, Namn (First name), Efternamn (Last name), PlayerId (3 first letters in Namn and 3 first letters in Efternamn like this "Speedy Gonsalez" would be SpeGon)
tbl_res [Id, PlayerId, AMT1 (hole 1 on a golfcourse), AMT2 (hole 2 on a golfcourse), and so on up to AMT18, TOTAL (The score of a golfround)
What I wanna do here is to get the average for each player on each hole and list the ten lowest averages on the hole clicked ( I have a link for each hole)
but as you probably noticed I don't have the average saved in my DB, that's because we input hole by hole on each player at each competition to get the stats at the end of the season.
I have no trouble to get the average on each hole for a single player.
You can check out a test page here: http://www.sundbybergsbgk.se/stat05/stat.asp
(Just click a name to see the stats for that player)
as this is a test page there is no links for each hole on it, this only shows how i get the average listed, my intention is to link all holes (Bana 1, Bana 2 and so on)
Any ideas? If you miss some information just ask and I will try to answer it =)
/Speedy
first of all I hope I post this in the right thread, second of all I hope my title is somewhat close to what I'm asking for ;)
What I have is an asp page connected to an Access DB that contains
2 tables:
tbl_player and tbl_res
tbl_player [Id, Namn (First name), Efternamn (Last name), PlayerId (3 first letters in Namn and 3 first letters in Efternamn like this "Speedy Gonsalez" would be SpeGon)
tbl_res [Id, PlayerId, AMT1 (hole 1 on a golfcourse), AMT2 (hole 2 on a golfcourse), and so on up to AMT18, TOTAL (The score of a golfround)
What I wanna do here is to get the average for each player on each hole and list the ten lowest averages on the hole clicked ( I have a link for each hole)
but as you probably noticed I don't have the average saved in my DB, that's because we input hole by hole on each player at each competition to get the stats at the end of the season.
I have no trouble to get the average on each hole for a single player.
You can check out a test page here: http://www.sundbybergsbgk.se/stat05/stat.asp
(Just click a name to see the stats for that player)
as this is a test page there is no links for each hole on it, this only shows how i get the average listed, my intention is to link all holes (Bana 1, Bana 2 and so on)
Any ideas? If you miss some information just ask and I will try to answer it =)
/Speedy