Database Code
  Home arrow Database Code arrow Page 4 - Examples and Tools for Database Design
Codewalker Forums 
  Tutorials  
Database Articles  
Miscellaneous  
Navigation Usability  
PEAR Articles  
Programming Basics  
Server Administration  
XML Tutorials  
  Reviews  
Database Book Reviews  
Linux Book Reviews  
Miscellaneous Reviews  
PHP Book Reviews  
PHP Software Reviews  
Server Admin Reviews  
SQL Tool Reviews  
  Code Gallery  
Content Management Code  
Contest Code  
Counters Code  
Database Code  
Date Time Code  
Discussion Board Code  
Email Code  
File Manipulation Code  
GUI Code  
Link Farm Code  
Miscellaneous Code  
Search Code  
Site Navigation Code  
User Management Code  
Forums Sitemap 
Dedicated Servers  
Download TestComplete 
JMSL Numerical Library 
IBM® developerWorks
Weekly Newsletter 
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
DATABASE CODE

Examples and Tools for Database Design
By: O'Reilly Media
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 3 stars3 stars3 stars3 stars3 stars / 3
    2007-12-06

    Table of Contents:
  • Examples and Tools for Database Design
  • Using the Entity Relationship Model
  • Using Tools for Database Design
  • Resources

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Examples and Tools for Database Design - Resources


    (Page 4 of 4 )

     

    To learn more about database fundamentals, including ER modeling, we recommend the following books:

    1. Database Management Systems by Raghu Ramakrishnan and Johannes Gehrke (McGraw-Hill).
    2. Fundamentals of Database Systems by Ramez Elmasri and Shamkant B. Navathe (Addison-Wesley).
    3. Database Systems: A Practical Approach to Design, Implementation and Management by Thomas M. Connolly and Carolyn E. Begg (Addison-Wesley).

    Exercises

    1. When would you use a weak entity?
    2. Is it better to use entities instead of attributes?
    3. Alter and extend the music database ER model so that it can store compilations, where a compilation is an album that contains tracks by two or more different artists.
    4. Create an ER diagram for an online media store using the following requirements:
      • There are two types of product: music CDs and video DVDs.
      • Customers can buy any number of each product.
      • For each CD, store the title, the artist’s name, the label (publisher), and the price. Also store the number, title, and length (in seconds) of each track on the CD.
      • For each video DVD, store the title the studio name, and the price.

    Tables 4-1 and 4-2 contain some sample data to help you better understand the requirements.

    Table 4-1. Video DVDs

    Title

    Studio

    Price

    Leon—The Professional

    Sony Pictures

    $21.99

    Chicken Run

    Dreamworks Video

    $19.99

    Table 4-2. Music CDs

     
    Title Artist Label Price
    Come Away With Me Norah Jones Blue Note Records $11.99
    Feels Like Home Norah Jones Blue Note Records $11.99
    The Joshua Tree U2 Island $10.99
    Brothers in Arms Dire Straits Vertigo $9.99

    Table 4-3 contains a sample list of music CD track titles and length in seconds for the CD with the title “Come Away With Me” by the artist Norah Jones.

    Table 4-3. Tracks

     Number

     Name

    Length

     1

     Don't Know Why

     186

     2

     Seven Years

     145

     3

     Cold, Cold Heart

     218

     4 

     Feelin' the Same Way

     177

     5 

     Come Away with Me

     198

     6 

     Shoot the Mone

     236

     7 

     Turn Me On

     154

     8

     Lonestar

     186

     9

     I've Got to See You Again

     253

    10

     Painter Song

     162

    11

     One Flight Down

     185

    12

     Nightingale

     252

    13

     The Long Day Is Over

     164

    14

     The Nearness of You

     187

     


    DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.

       · This article is an excerpt from the book "Learning MySQL," published by O'Reilly. We...
       · I would have liked some snippets to create the DB with the primary and foreign keys,...
     

    Buy this book now. This article is excerpted from chapter 4 of the book Learning MySQL, written by Seyed M.M. "Saied" Tahaghoghi and Hugh E. Williams (O'Reilly, 2006; ISBN: 0596008643). Check it out today at your favorite bookstore. Buy this book now.

    DATABASE CODE ARTICLES

    - Examples and Tools for Database Design
    - Relationships, Entities and Database Design
    - Modeling and Designing Databases
    - Data extract to Excel
    - Oracle database class 0.76
    - The opposite of mysql_fetch_assoc
    - On line Thermal Transmitance Calculation
    - pjjTextBase
    - PHP Object Generator
    - FastMySQL
    - RC4PHP
    - SQL function with integrated sprintf()
    - DB Interaction Classes v1.1
    - deeMySQLParser
    - CSV to SQL convertor






    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway