Tutorial1 - sol - Homework 1 Solution Problem 1: ER Diagram...

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

View Full Document Right Arrow Icon
Homework 1 Solution Problem 1: ER Diagram Solution Problem 2: ER Diagram continued Solution 1. No - multiple credit cards may have the same expiration date. 2. Package: id, type, tier. Customer: id, name, email. 3. See diagram. Yes, we could eliminate the type attribute. However, we may not want to, as keeping the type attribute may facilitate some queries, and may make creating new types easier.
Background image of page 1

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

View Full DocumentRight Arrow Icon
Reasonable attributes for book: title, author, genre, number of pages, etc; for audiobook: title, author, genre, length, etc. Any attribute that makes sense is acceptable. Problem 3: ER Diagram translation Solution 1. Relational design: Package( id , type, tier), Card(nickname, number , exp, account_id ), Account( id , customer_id ), Customer( id , name, email, phone), HasPackage( account_id , package_id ) 2. If you chose to remove the type attribute: OO: Package( id , tier), PackageBook( id , tier, title), PackageAudioBook( id , tier, length) ER: Package( id , tier), PackageBook( id
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/17/2012 for the course CS 411 taught by Professor Winslett during the Spring '07 term at University of Illinois at Urbana–Champaign.

Page1 / 3

Tutorial1 - sol - Homework 1 Solution Problem 1: ER Diagram...

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

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