Case Study Dbintegration
Case Study Dbintegration
EMPLOYEE
Jones, L. (member records)
Patel, J. Vu, K.
Example: Three Local Databases
Database 1 (Relational Model):
S (TITLE, SAL)
Contract 1
Date
CLIENT
Client Address
Name
Schema Translation: Relational to ER
S (TITLE, SAL)
JNO JNAME
ENO ENAME RESP
E (ENO, ENAME, TITLE)
N M
J (JNO, JNAME, BUDGET, LOC, CNAME) E G J
N
G (ENO, JNO, RESP, DUR) DUR LOC
BUDGET
PAY
CNAME
• E & J have a many-to- 1
many relationship
• E & S have a 1-to-many S
relationship
SAL
TITLE
Treat salary as
an attribute of
an engineer
JNO JNAME entity
ENO ENAME RESP
N M
E G J
Dummy 1 1
record type
DEPARTMENT EMPLOYEE
N M
DEPARTMENT EMPLOYS EMPLOYEE
Integration
Process
Binary: Decreases the
potential integration
Binary N-ary
complexity and lead toward
automation techniques.
Project Project
Responsibility No. Name
Engineer Engineer
No. Name
Budget
1
ENGINEER N WORKS PROJECT
IN
N
Location
Title Salary CONTRACTED
Duration BY
Contract 1
Date
CLIENT
Client Address
Name
Preintegration Example: InS2 & InS3
Name
Dept-name Budget
E#
Title
Manager
N 1
EMPLOYEE EMPLOYS DEPARTMENT
KEYS
InS2: E# in EMPLOYEE
InS1 InS2 InS3
Dept-name in DEPARTMENT
InS1 InS3
ENGINEER E
Engineering No Eno
Engineer Name Ename
Salary Sal
WORKSIN G
Responsibility Resp
Duration Dur
PROJECT J
Project No Jno
Project Name Jname
Location Loc
Schema Comparison:
Naming Conflict (2)
Homonyms: Two different entities that have
identical names.
• In InS1, ENGINEER.Title refers to the title of
engineers.
• In InS2, EMPLOYEE.Title refers to the title of all
employees.
Name
Address
EMPLOYS
IS-A relationship Salary
DEPARTMENT
N
Resp JNO Jname CONTRACTED
BY
PROJECT
Budget Contract 1
M
EMPLOYS
J Date
InS1
CLIENT
InS3
Cname Loc
Dur Client Address
Name
Schema Comparison – Structural
Conflicts (2)
This is
1-to-many
Project
Dependency conflicts: Engineer
No.
Engineer
Name
No.
M
ENGINEER N EMPLOYS J
InS3
M
ENGINEER N WORKS PROJECT
IN
Location
Client
Title Salary Name
Duration
Project Project
Responsibility
Engineer Engineer No. Name
No. Name
Budget
M
ENGINEER N WORKS PROJECT
IN
N
Location
Title Salary C-P
Duration
Example: M
New
Transform the attribute Client name in Client
C
InS3
InS3 to an entity C to make InS3 Name
InS1
No. Name
Budget
1
ENGINEER N WORKS PROJECT
IN
N Location
Title Salary CONTRACTED
Duration BY
Contract 1
Date
CLIENT
Client Address
Project Project Name
Responsibility
Engineer Engineer No. Name
No. Name
Budget
M
PROJECT
InS3 is
N
ENGINEER WORKS
IN
N Location
Title Salary CONTRACTED
more
Duration BY
M InS3 general
Client
Name C
Merging & Restructuring Example
Final Result: Project Project
Duration No. Name
Responsibility
Budget
M
ENGINEER N WORKS PROJECT
IN
Location
CONTRACTED
E# BY
Name
CLIENT InS1/InS3
EMPLOYEE Title
N