You are on page 1of 2

ERD Tutorial COM408J1 Interactive Database Programming BSc IMD Year 2

Question 1 Produce narrative statements for the following:

Customer

is associated

Property

Customer

can place

Order

Teachers

teach

Students

Question 2 Draw the ERD for the following scenarios: A player plays for a team. Each patient has one or more patient histories; each instance of patient history belongs to one patient. An employee may be recorded as having many jobs; a particular job may be recorded as having been held by many employees. A person is a citizen of a country. A customer may place many orders; an order is specific to one customer.

Question 3 Show how it is possible to decompose the following relationship so that it may be implemented on a relational database. CUSTOMER BOOKS

Question 4 Draw an ERD for a small college database comprising the entity types: DEPARTMENT, COURSE, STUDENT and LECTURER. Each department has many lecturers, one of whom is the head of department. A lecturer belongs to only one department. Each department offers many different courses, and many lecturers can teach on a single course. Lecturers can also teach on more than one course. A student may enrol for many courses offered by different departments. Question 5 A local education authority (LEA) requires a system to hold details of the applicants who apply for courses run by local colleges. Each course is run at only one college, though more than one course is run at each college. An applicant may apply for several courses. Details are to be kept of the standard qualifications that the majority of applicants have, such as GCSEs. Draw an ERD is this system. Question 6 A college has a student enrolment system. Each student is enrolled on one course. The students choose which modules they wish to study. Students from several courses may choose to study the same module. A course will typically have several modules, and an individual module may be offered on several different courses. Requirements of the system include the ability to determine which students are enrolled on a particular course and which modules a student has chosen to study; on which course a module may be studied; which modules are offered by a particular course. Draw an ERD of the student enrolment system. Question 7 A country bus company owns a number of buses. Each bus is allocated to a particular route, although some routes may have several buses. Each route is made up of several stages which can passes through a number of towns. A town may be situated along several stages (of different routes of course). One or more drivers are allocated to each stage of a route. Prepare an ERD for this scenario.

You might also like