In the outings table which keeps track of individual rounds of golf it has both golf course id and golfer id as foreign keys. When an outing is created, a course and a golfer are selected and then scores are entered for each 9 holes. The 9 hole scores from the outing, will be compared with the 9 hole pars to update the golfer's handicap.
Many Golfers can play many courses. Many golfers can have many outings. Each outing may only have one course. Each outing is only for one golfer.
courses
outings
golfers
In the outings table which keeps track of individual rounds of golf it has both golf course id and golfer id as foreign keys. When an outing is created, a course and a golfer are selected and then scores are entered for each 9 holes. The 9 hole scores from the outing, will be compared with the 9 hole pars to update the golfer's handicap.
Many Golfers can play many courses. Many golfers can have many outings. Each outing may only have one course. Each outing is only for one golfer.