Example – Skew Write
•
•MakeSale(p1,s1,26) MakeSale(p1,s2,25)
•Update row 1: 30->4
• update row 2:
35->10
• find sum: 72
• // No need to Insert row in Order
•Find sum: 71
•// No need to insert row in Order
•COMMIT
• COMMIT
•
Initial
state of InStore, Product, Order
Final
state of InStore, Product, Order
Integrity constraint is
false:
Sum is 46
Order:
empty
Order:
empty
NB: sum uses old value of
row1 and Product,
and self-changed value of
row2