0% found this document useful (0 votes)
495 views

WEEK 1: E-R Model: 1. BUS Entity

The document describes the process of modeling an entity-relationship (E-R) model for a travel company. It identifies five entities - Bus, Ticket, Passenger, Reservation, and Cancellation - and their attributes. Relationships between the entities are defined, including strong and weak relationships. Finally, the E-R model is converted to relational model tables by representing the entities and relationships in a tabular format.

Uploaded by

aquaarian
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
495 views

WEEK 1: E-R Model: 1. BUS Entity

The document describes the process of modeling an entity-relationship (E-R) model for a travel company. It identifies five entities - Bus, Ticket, Passenger, Reservation, and Cancellation - and their attributes. Relationships between the entities are defined, including strong and weak relationships. Finally, the E-R model is converted to relational model tables by representing the entities and relationships in a tabular format.

Uploaded by

aquaarian
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 8

Date:

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 keys for 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. Bus 2. Ticket 3. Passenger 4. Reservation 5. Cancellation Now we will identify the attributes for each entity and construct the E-R Model.

1. BUS Entity:
The attributes are: i. Bus_No ii. Source iii. Destination iv. Dep_Time The E-R Model is as follows:

In the above figure Bus_No is the Primary Key

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:

Date: The E-R Model is as follows:

In the above figure Ticket_No is the Primary Key

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:

Date: The E-R Model is as follows:

In the above figure PNR_No is the Foreign Key

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:

In the above figure PNR_No is the Foreign Key

Page-No:

Date:

WEEK 2: Concept Design with E-R Model


Relate the entities appropriately. Apply cardinalities for each relationship. Identify the strong entities and weak entities (if any). Indicate the type of relationships (total/partial). Try to incorporate generalization, aggregation, specialization etc wherever required.

Relationship between BUS Entity and PASSENGER Entity:


The following diagram depicts the relationship exists between BUS Entity and PASSENGER

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:

Relationship between PASSENGER Entity and RESERVATION Entity:


The following diagram depicts the relationship exists between PASSENGER Entity and RESERVATION Entity.

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:

Relationship between PASSENGER Entity and CANCELLATION Entity:


The following diagram depicts the relationship exists between PASSENGER Entity and CANCELLATION Entity.

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:

WEEK 3: Relational Model


Represent all the entities (Strong, Weak) in tabular fashion. Represent relationships in a tabular fashion. There are different ways of representing relationships as tables based on the cardinality. Represent attributes as columns in tables or as tables based on the requirement. Different types of attributes (Composite, Multivalued and Derived) have different way of representation. The following are the tabular representations of the entities used in this company.

1. BUS Entity Table:

2. TICKET Entity Table:

3. PASSENGER Entity Table:

Page-No:

Date:

4. RESERVATION Entity Table:

5. CANCELLATION Entity Table:

Page-No:

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy