Why do we need “Relationships” between tables at all?
I think the main reason is for data integrity. If you have a relationship between two tables invoice and invoice_item. You won’t be able to add an invoice item that does not related to an invoice. This is what you want! It’s called referential integrity. It can get pretty messy in your database if you don’t have … Read more