Can a primary key have two foreign keys in different tables? For example:
Can a primary key have two foreign keys in different tables? For example:
The primary key of the Profits table can be foreign / external key of other tables, in this case you have:
Billing
PK->codFaturamento
FK->codLucro
Earnings
PK->codLucro
Expenses
PK->codDespesa
FK->codLucro
In these cases, a 1: N relationship