Give a detailed explanation of the one-to-one, one-to-many, and many-to-many relationships of a hotel reservation system.
each customer_id is associated with single bill_id and it is example of one to one relationship. Entities used in this relationship will be customer and bill .
each manager has many employees. This is the example of one to many relationship. Two entities in this relationship are manager and employees.
coming to last one i.e many to many relationship. many customers can have many rooms. when you go to book hotel with your family only one member books many rooms and thus many rooms contains many customers of same family.
DON'T FORGET TO HIT LIKE.
THANKS BY HEART.
Get Answers For Free
Most questions answered within 1 hours.