here we go:
RELATIONSHIPS
1.) What kinds of relationships can we represent in a database?
A.) There are several types of database relationships. commonly used examples below, to name a few:
i.) One to One Relationships
ii.)One to Many and Many to One Relationships
iii.) Many to Many Relationships
iv.)Self Referencing Relationships
When selecting data from multiple tables with relationships, the JOIN query is used. There are several types of ommonly used JOIN’s,examples below:
i.) Cross Joins
ii.) Natural Joins
iii.) Inner Joins
iv.)Left (Outer) Joins
v.) Right (Outer) Joins
2.) When do we use “One to One” relationships? Give an example from the real world.
A.) EXAMPLE: When a customer order need a delivery address you link the customer with the delivery address or billing address
3.) In the article in the “One to One”-section, the author of the article has a column called customer_id in the 4.) customers table. Why? How is it used in order to connect customers to addresses?
A.)customer_id = Address_id
5.) Give an example from the real world when would need to use a “Many to One/One to Many” relationship.
A.) An Order can consist of many items Example: customer_id= Order_id= item_id= item_ description, amount, shipping and billing address.
6.) Give an example from the real world when would need to use a “Many to Many” relationship.
7.) What does items orders table do?
It links the customer to items purchased. (It creates a many to many relationship between customer and Items ordered. and at the end an income 