Consider the following relations: BOOKS(Book#, Primary_author, Topic, Total_stock, $price) BOOKSTORE(Store#, City, State, Zip, Inventory_value) STOCK(Store#, Book#, Qty) Total_stock is the total number of books in stock and Inventory_value is the total inventory value for the store in dollars. a. Give an example of two simple predicates that would be meaningful for the BOOKSTORE relation for horizontal partitioning. b. How would a derived horizontal partitioning of STOCK be defined based on the partitioning of BOOKSTORE? c. Show predicates by which BOOKS may be horizontally partitioned by topic. d. Show how the STOCK may be further partitioned from the partitions in (b) by adding the predicates in (c).
Consider the following relations:
BOOKS(Book#, Primary_author, Topic, Total_stock, $price)
BOOKSTORE(Store#, City, State, Zip, Inventory_value)
STOCK(Store#, Book#, Qty)
Total_stock is the total number of books in stock and Inventory_value is the
total inventory value for the store in dollars.
a. Give an example of two simple predicates that would be meaningful for
the BOOKSTORE relation for horizontal partitioning.
b. How would a derived horizontal partitioning of STOCK be defined based
on the partitioning of BOOKSTORE?
c. Show predicates by which BOOKS may be horizontally partitioned by
topic.
d. Show how the STOCK may be further partitioned from the partitions in
(b) by adding the predicates in (c).
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images