Converting from Relational Model to Data Model Yong Choi School of Business CSUB
Reverse Engineering Procedure A table turns into an entity. Each column in the table turns into an attribute. A PK of the table turns into an identifier of the entity . In general, the ERD (data model) does not include FK information. Restaurant database: next slide
Data Model
Reverse Engineering: composite attribute Customer Customer_ID Customer_Name Customer_Address
Reverse Engineering: multi-valued attribute Employee Employee SSN Name E101 Johnson E102 Smith E103 Conley E104 Roberts Phone SSN Phone# E101 312 … E102 708 … E104 603 … SSN Name Phone # 24
Reverse Engineering 1
Reverse Engineering 1 Nurse: Care Center Nurse_ID, Name, Date_of_Birth Center_Name, Location, Date_Assigned
Reverse Engineering 1
Reverse Engineering Student Enroll Class STU_NUM STU_LNAME CLASS CODE ENROLL_GRADE Class CLASS CODE CRS_CODE CLASS_SECTION CLASS_TIME CLASS_ROOM PROF_NUM
Reverse Engineering CLASS STUDENT Class_ Student
Reverse Engineering Employee Emp_ID Emp_name Dependent Dep_SS_No Lname Fname DOB Gender
Reverse Engineering
Reverse Engineering Employee Emp_ID Emp_Name Emp_Address Manager_ID
Reverse Engineering
Reverse Engineering
Reverse Engineering