



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!




The slides are based on the textbook Database Systems by Thomas Connolly & Carolyn Begg 30/05/2007 Lecture 15 2
30/05/2007 Lecture 15 3
30/05/2007 Lecture 15 4
Staff Branch
staff.branchNo = branch.branchNo staff.position = ‘manager’branch.city = ‘London’
30/05/2007 Lecture 15 7
Staff
Branch
position= ‘manager’ city= ‘London’
where staff.branchNo = branch.branchNo
30/05/2007 Lecture 15 8
Staff.branchNo=Branch.branchNo
I haven’t shown this one
30/05/2007 Lecture 15 9
30/05/2007 Lecture 15 10
There is a trade off between static vs dynamic queries
30/05/2007 Lecture 15 19
SELECT p.propertyNo, p.street FROM Client c, Viewing v, PropertyForRent p WHERE c.prefType = ‘Flat’ AND c.clientNo = v.clientNo AND v.propertyNo = p.propertyNo AND c.maxRent >= p.rent AND c.prefType = p.type AND p.ownerNo = ‘CO93’; 30/05/2007 Lecture 15 20
30/05/2007 Lecture 15 21
30/05/2007 Lecture 15 22
30/05/2007 Lecture 15 25
30/05/2007 Lecture 15 26
30/05/2007 Lecture 15 27 30/05/2007 Lecture 15 28
30/05/2007 Lecture 15 29