Enhanced Entity-Relationship Models
1 / 10
Enhanced Entity-Relationship Models 1 / 10 Enahnced - - PowerPoint PPT Presentation
Enhanced Entity-Relationship Models 1 / 10 Enahnced Entity-Relationship Models Enhanced ER models add inheritance to entity types superclasses and subclasses. Subclasses inherit all the attributes of their superclass(es). Subclasses can:
1 / 10
◮ be disjoint or overlapping; ◮ represent total or partial specialization.
2 / 10
◮ Do faculty members have a major? ◮ Do students have a rank or salary?
3 / 10
UNIV_MEMBER Name ID Rank Salary Major Position EMPLOYEE STUDENT O Hours Emp_type
◮ What’s that Emp_type attribute? ◮ Can an emplyee have a salary and a number of hours?
4 / 10
UNIV_MEMBER Name ID Rank Salary Major Position EMPLOYEE STUDENT O Hours Emp_type HOURLY SALARIED D FACULTY STAFF D Emp_type ‘Salaried’ ‘Hourly’
◮ The subclasses of EMPLOYEE
◮ The double line from employee
aWe’re not quite done, but we’ll return to this example.
5 / 10
6 / 10
TRUCK BodyType BedLength CAR VIN Seating VEHICLE O
7 / 10
UNIV_MEMBER Name ID Rank Salary Major Position EMPLOYEE STUDENT O Hours Emp_type HOURLY SALARIED D FACULTY STAFF D Emp_type ‘Salaried’ ‘Hourly’
8 / 10
UNIV_MEMBER Name ID Rank Salary Major Position EMPLOYEE STUDENT O Hours Emp_type HOURLY SALARIED D FACULTY STAFF D Emp_type ‘Salaried’ ‘Hourly’ STUD_EMP RA TA Project Course D
9 / 10
◮ you want to represent commonality and differences between different
◮ you want to have different subsets of an enity type participate in
10 / 10