(one to one)
(one to many)
(many to many)
employee
table vs compensation
table
(an employee is uniquely related to a compensation amount
he/she is getting)
To reference a column in another table.
In the other table, the column customer_id is a Foreign key to relate customers to addresses
writes a blog
followers will read the blog
(one to many)
many followers send a comment
to the blogger
(many to one)
2 or more followers have posted comments
, likes
, emoticons
to 2 or more bloggers
on the social platform (many to many)
create any to
any relations
(in my example: items posted in a blog relates followers with bloggers on the platform)