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 SQL query to show which books (title only) are currently out of loan.

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_2

Step: 3

blur-text-image_3

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

More Books

Students also viewed these Databases questions

Question

What is the basis for Security Concerns in Cloud Computing?

Answered: 1 week ago

Question

Describe the three main Cloud Computing Environments.

Answered: 1 week ago