Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question consider the following typed relational schema describing books and borrowers in a library: Book (isbn:integer,title:string:publisher:string,year:integer) Author(isbn:integer,name:string,rank:integer) Borrower:(bid:ineger,name:string,address:string) Borrowings:(isbn:integer,borrower:integer,whenTaken:date, whenReturn:date) Assume the following: .dates are

Question

consider the following typed relational schema describing books and borrowers in a library:

Book (isbn:integer,title:string:publisher:string,year:integer)

Author(isbn:integer,name:string,rank:integer)

Borrower:(bid:ineger,name:string,address:string)

Borrowings:(isbn:integer,borrower:integer,whenTaken:date, whenReturn:date)

Assume the following:

.dates are represented as a count of the number of days since Jan 11990

.there is a system function today that returns today's date

.the relational operators allows you test before and after on dates

.all loans are for period of 14 days

.the whenReturned fields is null till the books is returned

.the rank field specifies whether the author is the first, second, third,...author

implement solutions to the following:

Write an SQL query to list each overdue book (title) and the borrower's name.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Linked Data A Geographic Perspective

Authors: Glen Hart, Catherine Dolbear

1st Edition

1000218910, 9781000218916

More Books

Students also viewed these Databases questions

Question

How do Dimensional Database Models differ from Relational Models?

Answered: 1 week ago

Question

What type of processing do Relational Databases support?

Answered: 1 week ago

Question

Describe several aggregation operators.

Answered: 1 week ago