The relational schema shown below is part of an inter-library loan system
Ask Expert

Be Prepared For The Toughest Questions

Practice Problems

The relational schema shown below is part of an inter-library loan system

Question 1

The relational schema shown below is part of an inter-library loan system. Borrowers can borrow books from different libraries.



a) Express the following queries in Relational Algebra:

i. Produce a relation that shows the borrower surname, borrower number and book titles for all borrowers at the Hatton Cross branch.

ii. Produce a relation that shows the following information: borrower surname, borrower number for all borrowers that borrowed books from public libraries which have holdings above 30,000.

b) Derive the result for the following relational algebra queries:

i. ΠLibrary Branch (σHoldings <=50000 ˄District= “South London” (Library)))

ii. ΠLibrary Branch (σDistrict ≠ ‘Berkshire’ ˄ Holdings >= 100000(Library))

iii. ΠBorrower surname (σBook_Title = “Coral Bridge” (Loan_Record))

c) Give a definition of query optimisation and outline how relational algebra can be used in the process of query optimisation..

d) Give an outline of the main features of Relational Calculus.

Hint
Accounts & Finance"Part a: Express the Queries in Relational AlgebraLet's assume the following relational schema for the inter-library loan system:Library (Library_Branch, Holdings, District)Book (Book_Title, Library_Branch)Borrower (Borrower_Number, Borrower_Surname, Branch)Loan_Record (Borrower_Number, Book_Title, Library_Branch)Query i: Produce a relation that shows the borrower surname, bo...

Know the process

Students succeed in their courses by connecting and communicating with
an expert until they receive help on their questions

1
img

Submit Question

Post project within your desired price and deadline.

2
img

Tutor Is Assigned

A quality expert with the ability to solve your project will be assigned.

3
img

Receive Help

Check order history for updates. An email as a notification will be sent.

img
Unable to find what you’re looking for?

Consult our trusted tutors.

Developed by Versioning Solutions.