Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 7

School of Science and Engineering

Department of Com puter Engineering and Computer Science

Program Name: Bachelor of Computer Engineering / Bachelor of Computer Science


Subject Name: DBMS lab
Subject Code: ECB 2091 / SCB 1064
Lab Task Date: 19-05-2021

Lab Task 4
Topic: Entity Relationship Model
CLO 1 : Design schemas using data models like ERD, Relational Model etc in RDBMS and modify the design using concepts
and techniques of normalization
PO3 [WA 3] Design / Development of Solutions – Design solutions for complex engineering problems and design systems,
components or processes that meet specified needs with appropriate consideration for public health and safety, cultural,
societal, and environmental considerations [WK 6]

Instructions
• Print the lab assignment and do all the questions given below, on a paper.
• Scan and email the handwritten solutions with cover page to aparna.miu@gmail.com before 10 pm
on 19-05-2021. [Only scanned copies will be accepted]
• Name your file as DBMS_LAB 4_branch name_your name _your student_id.

Student Details
Student Id: 1106182001
Student Name: Pavethren Thangavelu
Student Signature:
Submitted Date: 20/05/2021

Lab Rubric Mark


0 2 3 Criteria
>3 days < 3 day Same day Completion of task and
submission

Entities , attributes and Entities and attributes Entities, attributes, relations Design of the database
relations correctly defined but correctly defined but and cardinality are correctly using the ERM. Showing
error cardinality error in relations and defined and shown all the entities, attributes,
cardinality relation and cardinality
Not neat at all Average Very Neat Neatness, completeness,
and readability of the
database design

1
School of Science and Engineering
Department of Com puter Engineering and Computer Science

Total :

Lecturer :
Date :
Q.1 Create an ERD based on the Crow’s Foot model, using the following requirements:

1. An INVOICE is written by a SALESREP. Each sales representative can write many invoices, but each
invoice is written by a single sales representative.
2. The INVOICE is written for a single CUSTOMER. However, each customer can have many invoices.
3. An INVOICE can include many detail lines (LINE), each of which describes one product bought by the
customer.
4. The product information is stored in a PRODUCT entity.
5. The product’s vendor information is found in a VENDOR entity.

Q.2 Using the Crow’s Foot methodology, create an ERD that can be implemented for a medical clinic, using
the following business rules:

1. A patient can make an appointment.


2. a doctor can accept appointments with many patients.
3. However, each appointment is made with only one doctor and with one patient only
4. With each visit, the patient’s records are updated in medical history with diagnosis and appropriate
treatment and medicine and also the charges.
5. Each visit/checkup yields a visit for next time with the doctor for the next visit date and time.

Q.3 Create an ERD for the given below business rules

1. A Mobile Company manufactures many phones.


Each Phone is manufactured by a mobile company
2. Phone may be bought by a customer. Customer may or may not buy a phone
3. Customer sends faulty phones for repair many times Repair is done for a phone.
4. A customer is an employee of an organization.
An organization has many employees.
Some listed employees are free lancers and are not registered with the organization.

Q.4

2
School of Science and Engineering
Department of Com puter Engineering and Computer Science

Give business rules and draw an ERD for creating a database for the scenario given above.

3
School of Science and Engineering
Department of Com puter Engineering and Computer Science

4
School of Science and Engineering
Department of Com puter Engineering and Computer Science

5
School of Science and Engineering
Department of Com puter Engineering and Computer Science

6
School of Science and Engineering
Department of Com puter Engineering and Computer Science

You might also like