Documente Academic
Documente Profesional
Documente Cultură
Example:
Practical session 2 We have a relation Sells(pub, address,price,type)
Type is “bitter” or “lager”.
We can split Sells into twp dfferent fragments:
Mon 7/11/05 • SellsBitter= σtype = “bitter”(Sells)
• SellsLager= σtype = “lager”(Sells)
S1 = ∏staffNo, position, sex, DOB, salary(Staff) • A horizontal fragment that is based on horizontal
S2 = ∏staffNo, fName, lName, branchNo(Staff) fragmentation of a parent relation.
• Ensures that fragments that are frequently joined
together are at same site.
S21 = σ branchNo=‘B003’(S2 )
• Defined using Semijoin operation of relational
S22 = σ branchNo=‘B005’(S2 ) algebra:
S23 = σ branchNo=‘B007’(S2 )
Ri = R F Si, 1≤i≤w
Solution ex 2
Since addition, subtraction and multiplication are commutative, then we can
execute the transactions in any order and the correct result will always be
generated