Question: Carefully study the Online Book database scenario below and complete the questions that follow: BOOK ISBN Book _ title Category Price Copyright _ date Year
Carefully study the Online Book database scenario below and complete the questions that follow:
BOOK
ISBN
Booktitle
Category
Price
Copyrightdate
Year
Pagecount
PID
Database Systems
Textbook
P
Relational Algebra
Textbook
P
The Beautiful Ones Are Not Yet Born
Novel
P
PUBLISHER
PID
Pname
Address
State
Phone
Emailid
P
Nkosi Publications
Berverly Hills
Cape Town
nkozi@aol.com
P
Dominic Publishing
Drive Way
Midrand
dominic@aol.com
AUTHOR
AID
Aname
State
City
Zip
Phone
URL
A
Steve Harvey
US
US
wwwsteve.com
A
Obaro Adewale
South Africa
South Africa
wwwobaro.com
Source: Obaro Adewale
Question
a Based on the tables presented in the Online Book database, create a logical database diagram which reflect the scenario and establish the relationship between the tables. Indicate the appropriate datatypes in the data fields. A sample of the design is presented below.
Marks
b Using the relational tables in the scenario above, draw an equivalent graph database model to the logical database design in a
Marks
Write queries in relational algebra for the following based on the Online Book database.
I. Retrieve the city, phone and url of the author whose name is Obaro Adewale.
II Retrieve the name, address and phone of all the publishers located in US state.
III. Retrieve the title and price of all the Textbook category with a page count greater than
IV Retrieve the ISBN, title and price of the books belonging to either Textbook or Novel book category.
V Retrieve the ID name, address and phone of publishers publishing novel.
VI Retrieve the title and price of all the books published by Nkosi Publications.
VII. Retrieve the book title, reviewers ID and rating of all the text books.
VIII. Retrieve the title, category and price of all the books written by Steve Harvey.
Marks
a Study the two Database transactions defined by T and T which are presented below:
i Write a serial schedule for these transactions.
Marks
ii Write an equivalent nonserial schedule for these transactions.
Marks
b State and discuss the two ways by which the performance of the above query can be evaluated.
Marks
c If the two transactions encounter a deadlock during processing, provide a solution on how it can be solved in this scenario.
Marks
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
