DBM405A Lab 1 Baseball Database and Team data

I. OBJECTIVES

  1. Get access to a MySQL environment.
  2. Familiarize yourself with the environment.

II. PARTS LIST

  1. EDUPE Omnymbus Environment (https://devry.edupe.net:8300); and/or
  2. MySQL (dev.mysql.com/downloads).

III. PROCEDURE
You may do the labs in this class on your own computer equipped with MySQL or you may use the MySQL environment hosted by the vendor Omnymbus. You may even use both.
Using MySQL on your own computer means downloading a version from dev.mysql.com/downloads and installing the database engine on your computer. This can be done easily and there are a number of resources on the web to help you with this process.
You may also use the MySQL environment hosted by Omnymbus by logging in with your credentials to https://devry.edupe.net:8300.
Using the first approach will give you experience writing programs on a desktop computer and accessing a database. Using the second approach will give you experience writing applications that access a database in a cloud environment.
You are encouraged to use both approaches.
Desktop MySQL Environment

  1. Download the MySQL Community Server from the http://dev.mysql.com/downloads/ website.
  2. Install MySQL on your computer.
  3. Open the MySQL Environment on your computer.

Omnymbus Environment

  1. Login to the MySQL Omnymbus Environment by following the instruction located in Doc Sharing (document titled “Login MySQL Omnymbus Environment”).

Lab Procedure Continued (common to both environments)

  1. Create a database named “Baseball”.
  2. Create a table named “Teams” and add the following fields:
    1. TeamCode (character 5)
    2. TName (character 20)
    3. TAddress (character 30)
    4. TCity (character 20)
    5. TState (character 2)
    6. TZip (character 9)
    7. Wins (integer)
    8. Losses (integer)
  3. Populate the table with 8 teams.
  4. Create a table named “Players” and add the following fields:
    1. FirstName (character 20)
    2. LastName (character 30)
    3. MidInit (character 1)
    4. PAddress (character 30)
    5. PCity (character 20)
    6. PState (character 2)
    7. PZip (character 9)
    8. Phone (character 11)
    9. Team (character 5)
  5. Populate the table with 80 players (10 on each team). For the team, use the TeamCode from the first table to identify the Team the player is on.
  6. Display or list the data from both table to the screen or printer.



This slideshow requires JavaScript.



This assignment includes a zip document.

  • Attachments
  • Preview random excerpt
    xxxxxxxx xxxxxxx(5),
    xxxxx xxxxxxx(20),
    xxxxxxxx xxxxxxx(30),
    xxxxx xxxxxxx(20),
    xxxxxx xxxxxxx(2),
    xxxx
    varchar(9), Wins int,
    xxxxxx
    int ); CREATE
    xxxxx
    Players (
    xxxxxxxxx
    xxxxxxx
    (20), LastName
    xxxxxxx
    (30),
    xxxxxxxx
    xxxxxxx
    (
    x
    ),
    xxxxxxxx xxxxxxx(30),
    xxxxx xxxxxxx(20),
    xxxxxx xxxxxxx(2),
    - - - more text follows - - -



Purchasing Instruction
List Price: $12

Buy Now

Buy More Save More
Buy at least TWO items & save up to 30% OFF your ENTIRE order!
Rack up instant rebates in your shopping cart. Simply add items to your cart, and see the savings add up.
Discounts will automatically be applied on eligible orders.

Add to Cart