WEEK 1: E-R Model
Analyze the problem carefully and come up with the entities in it. Identify what data has to be persisted in the database. This contains the entities, attributes etc.Identify the primary keysfor all the entities. Identify the other keys like candidate keys, partial keys if any.
The entities for the above company named “Roadway Travels” are as follows
1. Bus2. Ticket3. Passenger 4. Reservation5. Cancellation Now we will identify the attributes for each entity and construct the E-R Model.
1. BUS Entity:
The attributes are:i. Bus_Noii. Sourceiii. Destinationiv. Dep_TimeThe E-R Model is as follows:In the above figure Bus_No is the Primary Key
2. TICKET Entity:
The attributes are:i. Ticket_Noii. Journey_Dateiii. Ageiv. Sexv. Sourcevi. Destinationvii. Dep_Time