Assignment 1
Assignment 1
EXPERIMENT ON E-R
MODEL
NAME OF STUDENT NUPUR CHANDANE
CLASS TE E&TC
ROLL NO 20ET008
DATE OF PERFORMANCE
DATE OF SUBMISSION
❖ Types of Attributes
▪ Simple attribute − Simple attributes are atomic values, which cannot
be divided further.
▪ For example, a Customer's ID number is an atomic value of
6 digits.
▪ Composite attribute − Composite attributes are made of more than
one simple attribute.
▪ For example, a customer's complete name may have first-name,
middle-initial and last-name.
▪ Single-value attribute − Single-value attributes contain single value.
▪ For example − Customer_ID, Social_Security_Number.
▪ Multi-value attribute − Multi-value attributes may contain more than
one values.
For example, a person can have more than one phone number,email_address,
etc.
Draw E-R diagram and convert entities and relationships to relation table for
a given scenario.
a. Two assignments shall be carried out i.e. consider two different
scenarios (eg. bank, college)
Consider following databases and draw ER diagram and convert entities and relationships to
relation table for a given scenario.
1. COLLEGE DATABASE:
2. COMPANY DATABASE:
Use tools:
HTML5 Documentation
Relationship: Reserves
Primary Key Atributes:
1. SID (Sailor Entity)
2. BID (Boat Entity)
Reservations :
Reservations are directly handled by booking office. Reservations can be
made 60 days in advance in either cash or credit. In case the ticket is not
available, a wait listed ticket is issued to the customer. This ticket is
confirmed against the cancellation.
Analyze the problem and come with the entities in it. Identify what
Data has to be
persisted in the databases.
The Following are the entities:
1. Bus
2. Reservation
3. Ticket
4. Passenger
5. Cancellation