1. Overview-
Every Product (tbl_Product) has a single licensor (tbl_Licensor).
Tricky part is, each licensor may have a sublicensor. So, a product
could have a licensor or a sublicensor.
2. Examples-
a. Product: Star Wars
Licensor: Fox
Sublicensor: Lucas
b. Product: X-Men
Licensor: Fox
Sublicensor: (None)
3. Tables (showing only primary keys)-
a. tbl_Product
Product_ID (PK)
b. tbl_Licensor
Licensor_ID (PK)
c. tbl_Product_Licensor
Product_ID (PK, FK)
Licensor_ID (PK, FK)
4. Problem-
I don't know where/how to add a sublicensor in tbl_Product_Licensor
without adding nulls when a product has a licensor but no sublicensor.
Also, should I use a composite key or surrogate key in the table
combining licensor and sublicensor, assuming there is such a table
required.
Any help is certainly appreciated!
John