Distributed Database For BookStore
Distributed Database For BookStore
Consider a distributed database for a bookstore with 3 sites called site1, site2 and site3.
Consider the following relations:
books ( ISBN, Author, Topic, TotalStock, Price )
BookStore (Storeno, City, State, ZipCode, InventoryValue )
Stock (Storeno, ISBN, Qty )
Total Stock is the total number of books in stock.
Now here in this distributed database for bookstore, we have fragmented the books according to the
ISBN numbers into:
Similarly, Book Stores are divided according to their store number into
books
books
BookStore
BookStore site1 site2
site3 Stock
Stock
books BookStore
Stock
Procedure:
From site 2, we want to check the available copies of particular book with ISBN number in the
bookstore. According to the ISBN number in which fragment it belongs, search in the respective
database.
Get the list of all the books available in the bookstore from any site.