BCO2149 Database Systems ECA Assignment 2, Semester 1 2011 Total Marks 45 Due
BCO2149 Database Systems ECA Assignment 2, Semester 1 2011 Total Marks 45 Due
A Real Estate Company has a number of branches in and around the suburbs of Melbourne. Each
branch is identified by the following attributes sales office Number (unique), Address and Phone
number.
Each branch is assigned one or more Employees. Each employee is identified by the following
attributes; EmpId(unique), Employee Name, Employee Address, Phone Number
An Employee may operate from more than one branch office. The date, start and end time for each
employee operating from a specific branch must be recorded.
Each of the branch offices is managed by one specific Employee and an Employee may mange
more than one branch office.
Each real estate branch lists a number of properties (at least one) for sale or rent. Attributes of a
Property are; PropertyNo(unique), Property Address, Description, Type (sale or rent).
Each Property can only be listed with one and only one branch.
Each Property could be owned by one or more owners.(must have at least one) Attributes of
representing an Owner are; OwnerId (unique), OwnerName ,OwnerAddress and Phone number.
An owner may own one or more Properties. For each property that an owner owns, an attribute
PercentageOwned is used to record the particular percentage that is owned by each specific
owner.
Each Real Estate branch uses Contractors to complete any maintenance work that may be
required to be undertaken on any of their listed properties. A contractor is identified by the following
attributes; ContractorNo (unique), ContactorName, ContractorName, ContractorPhone, and
Speciality.
A Contractor is assigned maintenance work by a specific real estate branch for a specific property.
A contractor may complete maintenance work on many properties and each specific property may
have lots of maintenance work done it.
For each maintenance assignment, the following information must be recorded; the assignment
date, the number of hours required to complete the assignment and the total cost. These attributes
must link back to the Property requiring the maintenance, the Contractor who completed the work
and the Real Estate branch that assigned the work.
( 5+7+5 = 17 marks)
Question 2
Transpose the following Entity Relationship diagram in a set of relational tables.
( 6 marks)
Nurse Department
Nurse_NO Staffs Depart_NO
Nurse_Name
Depart_Name
Date_of_Birth
Phone
Start_Date
Supervises
Employs
Start_Time End_Time
Operation Date Op_Room
Patient Doctor
Supports
Has Year
Operation Grade
Operation_NO
Op_Name
Duration
Cost Qualification
Qual_Code
Qual_Name
Question 3
(a)
Convert the following relational tables into an Entity Relationship diagram, showing all
attributes and highlighting the primary keys. Only the maximum cardinality is required to be
displayed.
(b)
What changes would have to be made to the ER diagram if an employee is assigned to project via
a task rather than simply to a project only. The time spent on a task within a project is to be
recorded. An employee may work on many tasks and a must have at least one employee assigned
to it. Students are required to re draw their previous ER diagram.
(5+ 2 = 7 marks)
Question 4
Casual Employee Placement (CEP) is a agency that places temporary workers in companies.
CEP's manager gives you the following description of the business:
CEP has a file of candidates who are willing to work.
If the candidate has worked before, that candidate has a specific job history. (Naturally, no
job history exists if the candidate has never worked for the agency.) Each time the
candidate works, one additional job history record is created.
Each candidate may have earned several qualifications. Each qualification may be earned
by more than one candidate. (For example, it is possible for more than one candidate to
have earned a Bachelor of Business Administration degree or a Microsoft Network
Certification. And clearly, a candidate may have earned both a BBA and a Microsoft
Network Certification.)
CEP offers courses to help candidates improve their qualifications.
Every course develops one specific qualification; however, CEP does not offer a course for
every qualification. Some qualifications have multiple courses that develop that
qualification.
Some courses cover advanced topics that require specific qualifications as prerequisites.
Some courses cover basic topics that do not require any prerequisite qualifications. A
course can have several prerequisites. A qualification can be a prerequisite for more than
one course.
Courses are taught during training sessions. A training session is the presentation of a
single course. Over time, CEP will offer many training sessions for each course; however,
new courses may not have any training sessions scheduled right away.
Candidates can pay a fee to attend a training session. A training session can accommodate
several candidates, although new training sessions will not have any candidates registered
at first.
CEP also has a list of companies that request temporaries.
Each time a company requests a temporary employee, CEP makes an entry in the
Openings folder. That folder contains an opening number, a company name, required
qualifications, a starting date, an anticipated ending date, and hourly pay.
Each opening requires only one specific or main qualification.
When a candidate matches the qualification, the job is assigned, and an entry is made in
the Placement Record folder. That folder contains an opening number, a candidate
number, the total hours worked, etc. In addition, an entry is made in the job history for the
candidate.
An opening can be filled by many candidates, and a candidate can fill many openings.
CEP uses special codes to describe a candidate's qualifications for an opening. The list of
codes is shown in the table below
Instructions:
Based on the above information, you are required to develop an Entity Relationship model that
best represents the operations of the agency.
(15 marks)