Question
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
.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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started