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

CSCI335_Midterm

Database Systems - CSCI335 Midterm exam

Uploaded by

52230159
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views

CSCI335_Midterm

Database Systems - CSCI335 Midterm exam

Uploaded by

52230159
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

CSCI335 Midterm Fall 2024-2025

Department of Computer Science and Information Technology


Name Id
Course CSCI335 Database Systems
Date 11 DEC 2024 Time 18:30 – 19:30 Duration 60 minutes
Pages 3 Q1 Q2 Q3

Question 1: [30 pts] Mapping from ER to Relational Model

Map the ER (Entity-Relationship) schema below into a relational schema. For each table, specify
the primary keys and the foreign key(s) if any.

Note: Use a solid line to underline a primary key and indicate clearly the foreign key using arrows.

Page 1 of 3
CSCI335 Midterm Fall 2024-2025

Question 2: [30 pts] Reverse Engineering: From Relational Model to ER


Convert the following relational schema into an Entity relationship diagram .

Employee (employeeid, employeeName, officeNb)

SalesOffice (office_number, city, state, address, zip_code, managerId)

Property (propertyid, city, address, state, zip_code, officeNb)

Owner (ownerId ,ownerName)

Owns (owId ,propId , percent_owned)

Page 2 of 3
CSCI335 Midterm Fall 2024-2025

Question 3: [40 pts] Data Modeling using ERD

DBLP is an organization that keeps track researchers and their publications. It has a website
that allows any user to search for publications by their name, by the name of the author, or
by the name of the institution. Draw an ER diagram that keeps track of the following
information:

• Each researcher has a unique ssn, a name, and a specialty. A researcher belongs to one
or more institutions with which he works.
• An institution has a unique name and an address.
• A researcher may write an article in affiliation with one institution. An article can also
be written by multiple researchers, each with his own affiliation.
• An article has a unique title, an abstract, and a date. Each article should be published
in a single journal. Each journal has a unique name, and a ranking.
• A reviewer is a person that reviews some articles, and an article may be reviewed by
multiple reviewers. The system should keep track of who reviewed an article, and
what is his comment on it.
• A reviewer has a unique ssn, a name, and a specialty.
Design a representation of the data in terms of entities, attributes and relationships between entities.
Construct an ERD diagram to depict this representation. Show the cardinalities using (min, max) or
CHEN notation and all necessary information.

Page 3 of 3

You might also like