WEEK 1: E-R Model: 1. BUS Entity
WEEK 1: E-R Model: 1. BUS Entity
1. BUS Entity:
The attributes are: i. Bus_No ii. Source iii. Destination iv. Dep_Time The E-R Model is as follows:
2. TICKET Entity:
The attributes are: i. Ticket_No ii. Journey_Date iii. Age iv. Sex v. Source vi. Destination vii. Dep_Time
Page-No:
3. PASSENGER Entity:
The attributes are: i. PNR_No ii. Ticket_No iii. Name iv. Age v. Sex vi. PPNo The E-R Model is as follows:
In the above figure PNR_No is the Primary Key and Ticket_No is Foreign Key
4. RESERVATION Entity:
The attributes are: i. PNR_NO ii. Journey_Date iii. No_Of_Seats iv. Address v. Contact_No vi. Status
Page-No:
5. CANCELLATION Entity:
The attributes are: i. PNR_No ii. Journey_Date iii. No_Of_Seats iv. Address v. Contact_No vi. Status The E-R Model is as follows:
Page-No:
Date:
The relationship between BUS Entity and PASSENGER Entity is strong relationship. Because the two entities consists of primary keys. Here the two entities are strong entities. So the relationship is strong relationship.
Page-No:
Date:
The relationship between PASSENGER Entity and RESERVATION Entity is weak relationship. Because the one entity consists of primary key and another entity consists of foreign key. Here the one entity is strong entity (single border rectangle) and another entity is weak entity (double border rectangle). The relationship between strong entity and weak entity is weak relationship.
Page-No:
Date:
The relationship between PASSENGER Entity and CANCELLATION Entity is weak relationship. Because the one entity consists of primary key and another entity consists of foreign key. Here the one entity is strong entity (single border rectangle) and another entity is weak entity (double border rectangle). The relationship between strong entity and weak entity is weak relationship.
Page-No:
Date:
Page-No:
Date:
Page-No: