Homework #1
(due date: 06/10/05)

Help on Homework has been updated (link).

  1. Submit Instruction

     

  2. Database Tables

    Suppose the following tables are stored in a database.

    AntiqueOwners
    OwnerID OwnerLastName OwnerFirstName
    01 Jones Bill
    02 Smith Bob
    15 Lawson Patricia
    21 Akins Jane
    50 Fowler Sam

     

    Orders
    OwnerID ItemDesired
    02 Table
    02 Desk
    21 Chair
    15 Mirror

     

    Antiques
    SellerID BuyerID Item
    01 50 Bed
    02 15 Table
    15 02 Chair
    21 50 Mirror
    50 01 Desk
    01 21 Cabinet
    02 21 Coffee Table
    15 50 Chair
    01 15 Jewelry Box
    02 21 Pottery
    21 02 Bookcase
    50 01 Plant Stand

     

  3. Questions
    1. Get the names of all antique owners.
    2. Who desired a table?
    3. Who purchased a 'Table'?
    4. Which users purchased the items they desired?
    5. What items did Sam fowler buy?
    6. Who sold what items to whom?
    7. Get the buyer's ID that who aren't antique owners before.
    8. Get the names of AntiqueOwners whose ID is in between 2 and 21.
    9. Who desired a 'Table' and a 'Desk'?
    10. Get the sum of all OwerIDs.

     

  4. Tips

 

 

Help on Homework #1

  1. Download MySQL from the website (link)

     

  2. Install MySQL for your own use (link)

    If you want to install MySQL on Windows XP, you will meet the the following steps (roughly) to install.

     

  3. Connect to MySQL server

     

  4. Test your MySQL

     

  5. Now, you will be able to do the following task!
Hosted by www.Geocities.ws

1