Type | Details |
---|---|
One to one | 1 row on table A can only relate with 1 row on table B. |
One to many | 1 row on table A can relate with many rows on table B. |
1 row from table B can only relate with 1 row from table A. | | Many to many | 1 row on table A can relate with many rows on table B.
1 row on table B can relate with many rows on table A. |
Primary Key is a column that can be identifier line. The characteristic
Example
It’s a column that refers to primary key column in other table that create relationship