Suppose there are three tables (man, sport, number of goals scored) how to link them with foreign keys? if a person can participate in several sports, and in the table of goals scored, information is stored. for all goals of a person for each sport (i.e. the combination of sport / goals scored in this tabl. is not unique)
and how to calculate the average goals scored for each sport