Professional Documents
Culture Documents
FCIM
CSU_07203 Fundamentals of DBs
Page 1 of 3
Q3.Consider the following information about a university database
Professors have SSN, a name, Date of birth(DoB), a rank, address, and a research
speciality
Projects have a project number, a sponsor name(e.g. COSTECH, NSSF, PSPF etc),
a starting date, an ending date and a budget
Graduate students have GSSN, a name, date of birth, and a degree program (M.S or
Ph.D.).
Each project is managed by one professor(known as the project’s principal
investigator)
Each project is worked on by one or more professors( known as the project’s co-
investigators)
Professors can manage and or work on multiple projects
Each project is worked on by one or more graduate students ( known as the
project’s research assistants)
When graduate students work on a project, a professor must supervise their work on
the project. Graduate students can work on multiple projects, in which case they
will have a (potentially different) supervisor for each one
Departments have a department number (DNumber), a department name, and a
main office.
Departments have a professor( known as the chairman) who runs the department
Professors work in one or more departments, and for each department that they
work in, a time percentage is associated with their job
Graduate students have one major department in which they are working on their
degree
Each graduate students has another , more senior graduate student ( known as a
student advisor) who advises him or her on what courses to take
Design and draw an ER diagram that captures the information about the university
database. Your diagram should indicate the keys of all entities, as well as the cardinality
and participation constraints of all relationships.
Q4. Create an E-R diagram for the following situation. Your diagram should indicate the keys
of all entities, as well as the cardinality and participation constraints of all relationships.
We want to model a blog system like Confunsed.blogspot.com, where there are many users
which can have different blogs; we want to model Users, their Blogs, the Postings on each
blog, and the Comments for each posting.
For each user, we keep its username (identifier), password and Name, divided into
FirstName, middle, LastName. For each blog, we keep its id (identifier), title, the date it was
created, and the number of posts (which can be calculated); we also keep track of which user
created which blog; a blog is created by exactly one user, and a user can create one or more
blogs.
Page 2 of 3
For each Posting, we keep its id (identifier), the blog it belongs to (postings belong to exactly
one blog, and blogs may have zero or more postings), its time stamp and its contents.
For each Comment, we keep its number (which uniquely identifies comments for the same
posting, but not all comments in general), time stamp and contents. We also keep track the
user who made the comment (comments are made by exactly one user, and a user can make
zero or more comments), and the posting the comment refers to (comments refer to exactly
one posting, and postings can have zero or more comments).
We also want to keep track of which blogs refer to which other blogs; a blog references to
zero or more blogs and is referenced by zero or more blogs.
Q5. Draw an ER Diagram for the Grade Report for a student below. Assume that each module
is taught by one instructor from the appropriate department but instructor can teach on
one or more modules. Each department offers several modules and each student must be
registered to a specific department and course. Also assume that the Grade Report
database will include many entities and each one must be unique from other entities using
its identifier.
The Institute of Finance Management
GRADE REPORT
Semester 2 2019/2020
Name: Crow Foot SID: 12345678 Course: BCS
Department: Computer Science
& Maths
Campus Main Campus .
Address: 45 Samora Avenue.
Major: Comp. Sc & Maths
Page 3 of 3