You are on page 1of 3

PL/SQL Lab

Student Name:AYUSHI KUMARI UID: 23MCA20510


Section/Group: MCA Sec 6B Semester: Sem 1

Experiment No. 1

1 Given a Relation Employee in the Following Table.

a. Perform a horizontal fragmentation of relation EMP with respect to


p1, p2.

b. Explain why the resulting fragmentation (EMP1, EMP2) does not fulfil
the correctness rules of fragmen-
tation.

c. Modify the predicates p1 and p2 so that they partition EMP obeying


the correctness rules of fragmen-
tation. To do this, modify the predicates, compose all minterm
predicates and deduce the corresponding
implication, and then perform a horizontal fragmentation of EMP based
on these minterm predicates. Fi-
nally, show that the result has completeness, reconstruction and
disjointness properties.
Inserted Values

A. Perform a horizontal fragmentation of relation EMP with respect to p1, p2.

TITLE > PROGRAMMER TITLE < PROGRAMMER

B. Explain why the resulting fragmentation (EMP1, EMP2) does not


fulfil the correctness rules of fragmentation.

Soln :- The above two fragmentations (EMP1 and EMP2) does not fullfill the
correctness rules of fragmen-
tation because the tuple (employee having TITLE as “Programmer”) does not
appear in any two above fragments.
If we modify the two predicates p1 and p2 as:
p1: TITLE  “Programmer” and p2: TITLE 
“Programmer”.
Then, the fragments of relation EMP with the above modified predicates will obey
corectness rule of frag-
mentation.
The “minterm” predicates are:
m1: TITLE=Programer
m2: TITLE=Elect.Eng
m3: TITLE=Mech.Eng
m4: TITLE=Syst.Anal
The fragmentation of relation EMP based on the above minterm predicates are
shown below:

TITLE <= PROGRAMMER


TITLE >= PROGRAMMER

You might also like