I'm trying to set up the relationships for a procycling database on one hand and a soccer table on the other hand; as an excercice. In the procycling DB a rider can switch teams (team x season 2014, team y season 2015). Teams can exsist in season 2014 but not anymore in season 2015. In soccer DB it is more complex as a player can change teams during the same season. I tried different ways but without result. How should my relationships look like in both DB's?
Reply from Alexander Hedley:
Hi Christophe, If we convert this to the lessons Rich has taught you could have an Employee and a Company. The Employee could have a CompanyID that is a Foreign Key to the CompanyT. You could then have a combo that lists all the Companies and choose one for the Employee. You could then change this if the Employee was to move Companies.
To show only certain Companies you could use a WHERE clause and filter it given some criteria.
Sorry, only students may add comments.
Click here for more
information on how you can set up an account.
If you are a Visitor, go ahead and post your reply as a
new comment, and we'll move it here for you
once it's approved. Be sure to use the same name and email address.