Horizontal Fragmentation Exercises
Horizontal Fragmentation Exercises
Question 1
If we assume that there are only two possible property Types: “Flat” and “House”,
determine the horizontal fragmentation of the relation. Check the correctness of the
fragmentation schema against the three correctness Principles.
Question 2
2) Explain why the resulting fragmentation (EMP1, EMP2) does not fulfill the
correctness rules of fragmentation
3) Modify the predicates p1 & p2 so that they partition EMP obeying the correctness
rules of fragmentation.
Question 3
1
Assume the following queries will access data from relations EMP and DEPT:
EMP
EmpNo EName Job Sal Deptno
001 Mary Agent 10,000 1
002 John Agent 8,000 1
003 Smith Agent 11,000 2
004 Peter Supervisor 15,000 1
005 Jackson Supervisor 15,500 2
DEPT
Deptno DName Location
1 Sales France
2 Marketing UK
Assumptions:
• Sales and Marketing department employs only 2 types of employees: Sales or
Marketing Agent and Supervisor.
• Departments are located in only 2 countries: France and UK.
(b) Explain whether the fragments obtained obey the correctness rules of
fragmentation.