


















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



















1
www.cl.cam.ac.uk/Teaching/current/Databases/
Integrity Constraints!
16
T1: R(a),W(a), R(b),W(b),C T2: R(a),W(a),R(b),W(b),C
Debit € 100 from a
Credit € 100 to b
Read a and b and add 6% interest
“ Dirty read ”
T1: R(a), R(a), W(a), C T2: R(a),W(a),C
T1: R(a), W(a),C T2: R(a), W(a),C (^) A is 4
Read A (5) Write 5+1=
Read A (5) Write 5-1=
“Unrepeatable Read”
T1:R(a), W(a), Abort T2: R(a),W(a),R(b),W(b),C
Deduct € 100 from a
Add 6% interest to a and b Can’t undo T It’s committed