Database Code

  Home arrow Database Code arrow Page 4 - Examples and Tools for Database Design
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 / 25
    2007-12-06

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

  •  
     

    SEARCH CODEWALKERS

    TOOLS YOU CAN USE

    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.
    blog comments powered by Disqus

    DATABASE CODE ARTICLES

    - Converting CSV Files to MySQL Insert Queries...
    - 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


    © 2003-2012 by Developer Shed. All rights reserved. DS Cluster 11 - Follow our Sitemap