Er Digram
Er Digram
1. Assume that you are working for ABC Collage as Database Administrator.
ABC Collage needs to store the information of its Student, having (Stud ID, FirstName,
LastName, Age) taking a Course (Coursecode, CourseName, Cradit hrs) in different Department
with (DeptID, DeptName, officeNo).
Case1: Many students can take many courses and many courses can be taken by many students
Case2: A student can have enrolled at one Department at a time and a department can have
many students
Case3: Course is given by a single department while a department can have many courses
2. Assuming you as a part of design and development of team of an organization, propose E-R
model using E-R diagram for the following data requirements. Also convert and represent E-
R model into tables: Company organized into DEPARTMENT. Each department has unique
name and a particular employee who manages the department. Start date for the manager is
recorded. Department may have several locations. A department control a number of
PROJECT. Projects have a unique name, number and a single location. Company's
EMPLOYEE name, ssno, address, salary, sex and birth date are recorded. An employee is
assigned to one department, but may work for several projects (not necessarily controlled by
her dept). Number of hours/week an employee works on each project is recorded. Employee's
DEPENDENT are tracked for health insurance purposes (dependent name, birthdate,
relationship to employee).
3. Consider the following set of requirements for a collage database that is used to keep track of
students' transcripts. This is similar but not identical to the database shown in
The university keeps track of each student's name, student number, social security
number, current address and phone, permanent address and phone, birthdate, sex,
class (freshman, sophomore, ..., graduate), major department, minor department (if
any), and degree program (B.A., B.S., ..., Ph.D.). Some user applications need to refer
to the city, state, and zip of the student's permanent address, and to the student's last
name. Both social security number and student number have unique values for each
student.
Each department is described by a name, department code, office number, office
phone, and college. Both name and code have unique values for each department.
Each course has a course name, description, course number, number of semester
hours, level, and offering department. The value of course number is unique for each
course.
Each section has an instructor, semester, year, course, and section number. The
section number distinguishes different sections of the same course that are taught
during the same semester/year; its values are 1, 2, 3, ..., up to the number of sections
taught during each semester.
A grade report has a student, section, letter grade, and numeric grade (0, 1, 2, 3, 4 for
F, D, C, B, A, respectively).
Design an ER schema for this application, and draw an ER diagram for that schema.
Specify key attributes of each entity type and structural constraints on each relationship
type. Note any unspecified requirements, and make appropriate assumptions to make the
specification complete.
4. Assuming you as a part of designer and development team, propose E-R model using E-R
diagram for the following data requirements of banking system. Also convert and represent
E-R model into tables characteristics of banking requirements are given below. The bank is
organized into branches. Each branch is located in a particular city. Bank customers are
identified by customer_id. Bank employees are identified by emp-id The bank offers two
types of accounts saving and current. Accounts can be held by more than one customer and a
customer can have more than one account. A loan originates at a particular branch and can be
held by one or more customers. Additional requirement can be assumed if required, but
assumptions should be clearly mentioned.