Welcome Guest ( Log In | Register )



 
Reply to this topicStart new topic
> Mysql Database Management
canalilha
post Jul 8 2008, 09:15 PM
Post #1


Member [ Level 1 ]
Group Icon

Group: Members
Posts: 31
Joined: 2-July 08
Member No.: 31,264



Hi i am new,

I have a problem in understanding the query decomposition in D-DB. Can anyone help me to understand the first question of the exercise 25.21 of Elmasri-Navath 4th edition?


Consider the following relations:

BOOKS (Book#, Primary_author, Topic, Total_stock, $price)
BOOKSTORE (Store#, City, State, Zip, Inventory_value)
STOCK (Store#, Book#, Qty)

Consider a distributed database for a bookstore chain called National Books with 3 sites called EAST, MIDDLE, and WEST.
Consider that BOOKS are fragmented by $price amounts into:

B1:BOOK1:up to $20.
B2:BOOK2:from 20.01 to $50.
B3:BOOK3:from 50.01 to $100.
B4:BOOK4100.01 and above.

Similarly, BOOKSTORES are divided by Zipcodes into:

S1:EAST:Zipcodes up to 35000.
S2:MIDDLE:Zipcodes 35001 to 70000.
S3:WEST:Zipcodes 70001 to 99999.

Assume that STOCK is a derived fragment based on BOOKSTORE only.

a. Consider the query:
SELECT Book#, Total_stock
FROM Books
WHERE $price > 15 and $price < 55;

Assume that fragments of BOOKSTORE are non-replicated and assigned based on region. Assume further that BOOKS are allocated as:

EAST:B1,B4.
MIDDLE:B1,B2.
WEST:B1,B2,B3,B4.

Assuming the query was submitted in EAST, what remote subqueries does it generate? (write in SQL).
Go to the top of the page
 
+Quote Post
yordan
post Jul 9 2008, 10:18 AM
Post #2


Way Out Of Control - You need a life :)
Group Icon

Group: [MODERATOR]
Posts: 1,969
Joined: 16-August 05
Member No.: 7,896



Is this a conceptual understanding problem ? Or is it an exercise a teacher asked you to perform ? In the second case, not sure the answer will arrive before the deadline...
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. MySQL - Trouble With Bulk Insert Statements(3)
  2. Recover Tables From A MySQL .frm File(8)
  3. Mirror My MySQL Database To Another Mysql Server(4)
  4. How To Connect MySQL With Flash?(8)
  5. MySQL, Multiple Tables(24)
  6. Permission Problem With Mysql Database Creation(8)
  7. Mysql And Php(15)
  8. Login System Using A Mysql Db(5)
  9. Oracle Vs. Mysql Vs. Postgresql(9)
  10. Subqueries In Mysql(1)
  11. Apache Php With Mysql On Windows [solved](9)
  12. Mysql - So Hard(14)
  13. Mysql Problem(1)
  14. Connecting To A Remote Database(9)
  15. Database(1)
  1. Sun Bought Mysql(6)
  2. Integrate Access Database Onto Intranet Site(5)
  3. Mysql Backup With Another Address?(4)
  4. I Have An Error With My Mysql Connection(7)
  5. Accessing Ms Access Database From A Centralized Location?(5)
  6. Mysql And User File_priv(0)
  7. Mysql Database Entry By Excel Sheets(2)
  8. Mysql On Computer(9)
  9. Space Needed For Database(10)
  10. Database Access On Remote Server W/jsp(0)
  11. Any Website Provide Free Host Mysql Host?(4)
  12. Mysql Multiple Tables(1)
  13. Some Useful Database Links.(5)


 



- Lo-Fi Version Time is now: 22nd August 2008 - 01:53 AM