WrittenHW2

WrittenHW2 - CS245 Database System Principles Summer 2009 Written Assignment 2 Due on Wednesday State all assumptions Email questions to

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
CS245 Database System Principles Summer 2009 Written Assignment 2 Due on Wednesday August 12, 09 State all assumptions. Email questions to [email protected] Problem 1 (20 points) Consider the following schema, for an online bookstore: Cust (CustID, Name, Address, State, Zip) Book (BookID, Title, Author, Price, Category) Order (OrderID, CustID, BookID, ShipDate) This schema represents customers (Cust) and books (Book). When a customer buys a book, a tuple is entered into the Order table. Assume you have an index over Book.Author, but there are no other indexes. Indicate the number of I/Os required to perform the following operations. You should assume that each operation uses memory efficiently. You can ignore final output I/O cost. If required, explain briefly. Use the following statistics: B(Order) = 3,000 blocks B(Cust) = 1,000 blocks B(Book) = 100 blocks a) Selection of Price<10 over Book. Memory = 10 blocks. b)
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 05/02/2010 for the course CSE 121 taught by Professor Staff during the Fall '08 term at UCSD.

Page1 / 3

WrittenHW2 - CS245 Database System Principles Summer 2009 Written Assignment 2 Due on Wednesday State all assumptions Email questions to

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online