example oracle database documents gawlik+other+documents

Upload: mikegoblan

Post on 05-Apr-2018

231 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/2/2019 EXAMPLE Oracle Database Documents Gawlik+OTHER+DOCUMENTS

    1/17

    Page 1 of17

    Paintball Club

    Design

    Kenneth Gawlik02/24/2012

    Oracle Programming

    [email protected]

    210-262-3569

    Note from Dr R: some of the descriptions should be expanded tobe a good report/documentdescribe, give examples and explain

    wherever you can

    Also note that the queries you think you will have may be modified

    for each document as you test them out to get what you need.

    2nd

    Document: The places to add the CREATE table explanation

    and actual statements go where this highlight is.

    The places to add ALL the data listing go here.

    (See the minimums in the syllabus)

    2nd

    Document: The places to add draft query statements go here.

    3rd

    Document: The place to add the results final, tested queries

    and results go where this color is.

    mailto:[email protected]:[email protected]:[email protected]
  • 8/2/2019 EXAMPLE Oracle Database Documents Gawlik+OTHER+DOCUMENTS

    2/17

    Page 2 of17

    Paint Ball Club Design

    Table of Contents

    1.Problem and Project Description 32.Design and Tables 83.Queries and Reports 11

  • 8/2/2019 EXAMPLE Oracle Database Documents Gawlik+OTHER+DOCUMENTS

    3/17

    Page 3 of17

    1.Problem and Project Description

    This document describes the main project for the CS4375 Oracle Programming class inthe Computer Science Department at St. Marys University. This project is about and

    Oracle database for a paint ball club. The club has a group of people who get together to

    play paint ball around Texas, and they purchase merchandise to support their paint ballplaying habit.

    This section of the document gives some background about paint ball and about the club.

    The second section of this document gives detailed information about the tables thatmake up the database including the kind of data that will be in the tables. The third

    section discusses and presents some of the queries that will be created to get data and

    information from the data in the tables.

    1.1 Background

    The game of Paintball was first developed in 1976 by man named Charles Gaines who

    initially came up with the concept of players stalking each other through the woods. The

    first way the game was played involved Nel-Spot pistols which were originally designed

    to mark trees with paint. The initial idea of the game was for the teams to go head-to-head using these paint pistols to eliminate their opponents while trying to capture the

    flag. Bob Gurnsey, a friend of Charles and co-founder of the game, later formed the

    National Survival Game Company which became the first firm to sell Paintballequipment in the U.S.

    Today, Paintball has evolved into a national and global sport with various types of game-

    play and objectives. The most basic and widely practiced form of Paintball isrecreational. In San Antonio alone there are four different recreational fields where

    anyone can go on a weekend and relieve some stress. These fields are comprised of the

    typical woods scenario where the players battle it out to capture the other teams flag, aswell as a newer form called speed-ball. Speed-ball is now one of the most popular ways

    to play Paintball both on the recreational level as well as professional. Speed-ball is a

    simple, and extremely fast paced game, hence the name, where there is usually different

    sized inflatable bunkers where the players can take cover. The object is simplyeliminating all opposing players. The best of three rounds determines the winner. In

    tournament play, there are brackets where each team then moves up the charts until thefinal round, where it is then the best of five games.

    The basic rules of Paintball are for the most part strait forward and common sense.

    However through the years some other rules have been implemented for safer game play.The basics are: all payers must be of age ten or higher; once hit with a paintball, the

    player is out; no wiping is allowed or else it results in disqualification for the rest of the

    games; masks or goggles must be worn at all times when in the play area; once a player

    is called out, the other team must cease fire to allow them to leave the field; guns cannotfire faster than 280 fps (feet per second) (recreational only, unlimited for tournament); a

  • 8/2/2019 EXAMPLE Oracle Database Documents Gawlik+OTHER+DOCUMENTS

    4/17

    Page 4 of17

    distance of 20 feet must be kept between players (recreational only); if a player can make

    it to the opposing teams starting back bunker, called The Gaud, then one oftheirplayers who had previously been out can come back in; if the game lasts past a certain

    time (varies amongst fields), then the team with the most players still standing wins the

    round. These are just a small part of the rules that go hand-in-hand with the sport, but

    these are the most important to ensure the safety of the players, as well as the referees.

    Equipment and Accessories

    The first and primary pieces of equipment for a player is the gun, goggles, air tank,

    Jimmy(barrel cover), and Hopper (storage and feeding apparatus for the paintballs).There are endless types and styles of guns that are available to the public. The basic types

    are mechanical, electrical, Autococker, pneumatic, and one in a class of its own knownas the brand nameAngel. The guns also have various interchangeable barrels that serve

    different and specific purposes, such as long and short range, as well as different air

    flows (known as ports) for certain degrees of accuracy. Some high-end barrels have thecapability of making a paintball gun accurate up to 200+ feet.

    Proto Matrix 2006Electronic Paintball Gun

    Goggles are just as unique as the players and the guns they use, all with their own special

    functions from the basic types, to some that have engineered ventilation and built in

    walkie-talkies. The colors, designs, and shapes of the goggles are virtually endless forindividuality.

  • 8/2/2019 EXAMPLE Oracle Database Documents Gawlik+OTHER+DOCUMENTS

    5/17

    Page 5 of17

    Dye InvisionPaintball Mask

    The hoppers are the main storage for the paint located on top of the gun, which feeds the

    paint as the player shoots. The most basic type is a gravity fed hopper. Another type is anelectronically controlled feeding system, which feeds the balls at a much faster rate, as

    well as a sensing mechanism that can tell when to stop feeding in order not to chop the

    paintball.

    Halo B Electronic Belt-driven Hopper

    Air tanks are the fuel for the gun. They store different types of air that then run through a

    regulator to propel the paintball out the barrel. There are three different types of tanks:CO2 , Nitrogen, and pure air (O2). Nitrogen is the most efficient given that it can store

  • 8/2/2019 EXAMPLE Oracle Database Documents Gawlik+OTHER+DOCUMENTS

    6/17

    Page 6 of17

    much more air (up to 5,000psi at 65cu/in) in the same sized container as the other two,

    giving much longer game-play between refills. Also, the nitrogen does not drop intemperature when decompressed as the others, which prevents gun and barrel freezing as

    well a more constant output pressure.

    Pure Energy Nitrogen Air Tank

    The Jimmy is the most important feature of the gun. It keeps any accidental firing fromleaving the barrel. This is especially important when off the field and the player is around

    others that do not have goggles on. There are built in safeties on every gun, however thisdevice is the ultimate safety a player can practice and is required by law to be on the

    barrel at all times when not in game-play.

    Jimmy- Shown as used.

  • 8/2/2019 EXAMPLE Oracle Database Documents Gawlik+OTHER+DOCUMENTS

    7/17

    Page 7 of17

    1.2 Project Description

    This database project will be a club for Paintball enthusiasts to join and purchase

    equipment for playing Paintball. The members will also have access to a table of events

    that are going on in the area pertaining to the sport.

    The club will have a list of members along with an identification number and details for

    the member. There will then be a list of products for the members to purchase, includingpricing and rating of the object. The products will be divided into two tables, one for gear

    and the other for optional accessories. When a purchase is made by a member, a list will

    be created for the orders. The orders will consist of the member who made the purchase,number of each product purchased, pricing, and shipping information. Finally there will

    be a table of events were the members can view time and location of events, as well as

    mark on the events that they are attending.

  • 8/2/2019 EXAMPLE Oracle Database Documents Gawlik+OTHER+DOCUMENTS

    8/17

    Page 8 of17

    2. Design and Tables

    This section of the document about the paint ball club database gives the details of the

    tables that need to in the database for the club to be able to do anything and havemeaningful data available to the members.

    There will be a total of five tables for this club. The tables consist of and are aboutMembers,

    Gear,

    Accessories,

    Orders, andEvents.

    Each table is connected primarily by the member identifier assigned on the members

    table to prevent redundancies throughout the database. The tables will be used to create

    queries for certain details needed for the club to run. Each table will use a primary key todenote the main field and foreign key if necessary to make certain queries easier to

    obtain. The products have been split into two tables since there are so many differenttypes in each category and there are two types of products to purchase. The other reasonthe merchandise if in two tables is for simplicity for the member who wishes to make a

    purchase since they may only want to buy the necessary equipment needed to play the

    game. The Events table is the one table that allows members to post events they wantother members to attend or follow and each event is specific to that member.

    2.1 Members Table

    The Members table consists of some basic information about the members which will be

    used for certain queries and reports. The table will also allow the other members to see

    the skill level of others for reference as well as location of the member in case they maywant to contact or play a tournament with that member. For this table, the fields included

    (as shown from left to right) are the ID of the member, first then last name, age, skill

    level the member is currently at, physical address, city and state, and zip code. Theprocess for getting billing and shipping information will use the member ID and the

    specific fields necessary. This information will be considered and treated as the same.The first and last names are separated in the event that members can be ordered

    alphabetically.

    Here are some potential records in the Members table with the possible field names. It

    shows the kind of data that will be available about each member.

    M_ID Name_First Name_Last Age Skill St._Add CS Zip

    1001 Kenneth Gawlik 22 Novice 2915 Anza San Antonio, Tx 782

    1002 Rene Garcia 23 Novice 135 Long Horn Rd. Wilson Co., Tx 742

  • 8/2/2019 EXAMPLE Oracle Database Documents Gawlik+OTHER+DOCUMENTS

    9/17

    Page 9 of17

    2nd

    Document: The places to add the CREATE table explanation

    and actual statements go where this highlight is.

    The places to add ALL the data listing go here.

    (See the minimums in the syllabus)

    2.2 Gear Table

    The first part of the products is comprised of the gear that is necessary for playing the

    game. The required gear includes guns, hoppers, masks, and so on. This part of theproducts allows the member to easily browse through the equipment available that they

    would need to play the game. This table will also have data that will give them a chance

    to look at ratings that other members have given the product to see if they are even

    interested in it in the first place. The fields will contain data about an identifier of the

    product, name of the product, description, rating, and the price of the product. All of thisinformation will be used to make reports on products sold, using the descriptions for

    clarification of the actual type of product sold.

    Here are some potential records in the Gear table with the possible field names. This data

    will represent the details about the type of gear that can be acquired through the club.

    Prod_ID P_Name P_Desc Rating Price

    5004 SP ION Paintball Gun (Electric) 4.3 $208.99

    5005 DYE Invision Paintball Mask (Vented) 4.9 $82.99

    2nd

    Document: The places to add the CREATE table explanation

    and actual statements go where this highlight is.

    The places to add ALL the data listing go here.

    (See the minimums in the syllabus)

    2.3 Accessories Table

    The second part of the products is the optional accessories that a player may want to

    purchase for themselves or equipment. The fields contained are the ID of the product

    (using a different starting number for clarity of which type), name and description, rating,and price just as before. The description is included for the same purpose as the Gear

    table. There will be at least 10 products that members will be able to order, and probably

    many more than that amount.

  • 8/2/2019 EXAMPLE Oracle Database Documents Gawlik+OTHER+DOCUMENTS

    10/17

    Page 10 of17

    Prod_ID P_Name P_Desc Rating Price

    6001 Dye Recon Dye brand pants 4 $80.78

    6002 Dye Prof. Dye brand jersey 4.8 $85.99

    2nd

    Document: The places to add the CREATE table explanation

    and actual statements go where this highlight is.The places to add ALL the data listing go here.

    (See the minimums in the syllabus)

    2.4Orders Table

    The orders table is primarily IDs from other tables for simplicity. This table will simply

    group the member and product to a specific order number with a quantity for future

    reports, as well as gathering necessary information for shipping and billing. A Total fieldis added at the end to allow for calculations at check-out. If a member makes a purchase

    of more than one type of item, a new order number will be used to record the purchase.

    Order_num M_ID Prod_ID Quantity Total_C

    8501 1001 5004 1 $208.99

    8502 1001 5007 2 $361.96

    2nd

    Document: The places to add the CREATE table explanation

    and actual statements go where this highlight is.The places to add ALL the data listing go here.

    (See the minimums in the syllabus)

    2.5 Events Table

    The events table is simply a way for members to look at what events are going on in the

    area with a description and date of the event. The last column provides members with themember who posted the event. This could be used as a query to see all the events that a

    certain user has posted. More fields are to come for this table.

    Event_ID Event_Desc. E_Date E_Loc M_ID

    9001 NPPL Tournament 24-Feb Paintball Knights 1001

    9002 Krossfire 1/2 Off Day 3-Mar Krossfire Paintball 1004

  • 8/2/2019 EXAMPLE Oracle Database Documents Gawlik+OTHER+DOCUMENTS

    11/17

    Page 11 of17

    3.Queries and Reports

    This section covers the queries or reports of data that will be generated based on the

    tables and what a member or administrator of the club might want. The queries are

    comprised of basic information gathering as well as organizing certain fields. The queries

    will also allow for a quick look up of certain members that have certain characteristics orhave made certain orders. The reports will simply be totals of certain products purchased

    by certain members or total products sold. There are other queries that are even more

    detailed. The information from these queries can be used for many processes andprocedures. Each of the queries currently identified are described below, along with some

    possible uses of the data resulting from the query. There will be at least 20 queries

    described and some will have a depth of complexity to cover all the requirements of theOracle database assignment.

    3.1 Member Look-up

    Display all of the current members with all data from all the fields. This informationcan be used by members to see information about all the members. Administrators

    may want to use the information to keep track of who is and who is not a member,

    and can check over the data for data integrity. Some customers and administratorsmay want to contact or follow others events.

    2nd

    Document: The places to add draft query statements go here.

    3rd

    Document: The place to add the results final, tested queries

    and results go where this color is.

    3.2Products (Gear) Look-up

    Display all the gear and information about the gear. Members can browse throughthe inventory and compare prices and ratings. Administrators can see what is in the

    inventory and what the offerings are to the members.

    2ndDocument: The places to add draft query statements go here.3rd

    Document: The place to add the results final, tested queries

    and results go where this color is.

    3.3 Products (Accessories) Look-up

  • 8/2/2019 EXAMPLE Oracle Database Documents Gawlik+OTHER+DOCUMENTS

    12/17

    Page 12 of17

    Display all Accessories for members to browse through the inventory and compareprices and ratings.

    2nd

    Document: The places to add draft query statements go here.

    3rdDocument: The place to add the results final, tested queries

    and results go where this color is.

    3.4 Events Look-up

    Display all the events and information for members to browse through and see whichevents appeal to them and to see if the time frame fits their schedule.

    2nd

    Document: The places to add draft query statements go here.

    3rd

    Document: The place to add the results final, tested queries

    and results go where this color is.

    3.5 All Products (Gear) Sold

    Display all the information for gear sold and number of each purchased. This wouldbe used for inventory purposes and see total sales for the category.

    2nd

    Document: The places to add draft query statements go here.

    3rd

    Document: The place to add the results final, tested queries

    and results go where this color is.

    3.6 All Products (Accessories) Sold

    Display all the information for accessories sold and number of each purchased. This

    would be used for inventory purposes as well and see total sales for the category.

    2nd

    Document: The places to add draft query statements go here.

    3rd

    Document: The place to add the results final, tested queries

    and results go where this color is.

  • 8/2/2019 EXAMPLE Oracle Database Documents Gawlik+OTHER+DOCUMENTS

    13/17

    Page 13 of17

    3.7 All Guns Sold

    Display all the guns that were sold along with their description, quantity, and total

    price. This would be used for inventory of the guns available and to see which guns

    are fast moving products, as well as total sales for the category. This will also help tosee which types of guns are the most popular.

    2nd

    Document: The places to add draft query statements go here.

    3rd

    Document: The place to add the results final, tested queries

    and results go where this color is.

    3.8All Hoppers Sold

    Display all the hoppers that were sold along with their description, quantity, and total

    price. This would be used for inventory of the hoppers available and to see which

    hoppers are fast moving products, as well as total sales for the category.

    2nd

    Document: The places to add draft query statements go here.

    3rd

    Document: The place to add the results final, tested queries

    and results go where this color is.

    3.9 All Masks Sold

    Display all the masks that were sold along with their description, quantity, and totalprice. This would be used for inventory of the masks available and to see which

    masks are fast moving products, as well as total sales for the category.

    2nd

    Document: The places to add draft query statements go here.

    3rd

    Document: The place to add the results final, tested queries

    and results go where this color is.

    3.10 All Tanks Sold

    Display all the tanks that were sold along with their description, quantity, and total

    price. This would be used for inventory of the tanks available and to see which tanks

  • 8/2/2019 EXAMPLE Oracle Database Documents Gawlik+OTHER+DOCUMENTS

    14/17

    Page 14 of17

    are fast moving products, as well as total sales for the category. This will also help

    with determining which types of tanks are most popular.

    2nd

    Document: The places to add draft query statements go here.

    3rd

    Document: The place to add the results final, tested queriesand results go where this color is.

    3.11 Products Purchased By Each Member

    This will display the members names, and skill level, along with the products they

    purchased so other members can see what types of equipment other members atdifferent skill levels are using on the field.

    2nd

    Document: The places to add draft query statements go here.

    3rd

    Document: The place to add the results final, tested queries

    and results go where this color is.

    3.12 Total Sales Report for All Products

    This will display every product sold with its description, quantity and price, with a

    total sales at the end for an overall look at products purchased and sales made.

    2nd

    Document: The places to add draft query statements go here.

    3rd

    Document: The place to add the results final, tested queries

    and results go where this color is.

    3.13 Shipping for All Orders

    Display the order number with the members IDs and shipping information so that theproducts can be sent accordingly.

    2nd

    Document: The places to add draft query statements go here.

    3rd

    Document: The place to add the results final, tested queries

    and results go where this color is.

  • 8/2/2019 EXAMPLE Oracle Database Documents Gawlik+OTHER+DOCUMENTS

    15/17

    Page 15 of17

    3.14 Billing for All Orders (by member)

    Display the order number with the members IDs and billing information so that the

    products can be billed accordingly.

    2nd

    Document: The places to add draft query statements go here.

    3rd

    Document: The place to add the results final, tested queries

    and results go where this color is.

    3.15 Products that Have More than 10 Purchases

    Display the product name and description, as well as total quantity sold and pricewhere the quantity is above ten purchased. This will show the top sellers and will

    allow for adjustments in inventory and can be considered the hot products. This can

    also give a snapshot of where top sales are coming from.

    2nd

    Document: The places to add draft query statements go here.

    3rd

    Document: The place to add the results final, tested queries

    and results go where this color is.

    3.16 All Orders

    Display all products sold with only IDs of the products and members as well as theorder ID. The product quantity and price will be displayed as well. This will serve as

    a book-keeping method with only numbers to keep records of all sales made through

    the club. The number format will make for quicker calculation in total inventory andsales checking.

    2nd

    Document: The places to add draft query statements go here.

    3rdDocument: The place to add the results final, tested queries

    and results go where this color is.

    3.17 Members Who Have Made No Purchases

  • 8/2/2019 EXAMPLE Oracle Database Documents Gawlik+OTHER+DOCUMENTS

    16/17

    Page 16 of17

    Display the members name and ID along with their shipping address. This will allow

    the club to target who has not been active and will use the list to send letters, offers,and promotional products to entice the members to make purchases.

    2nd

    Document: The places to add draft query statements go here.

    3rdDocument: The place to add the results final, tested queries

    and results go where this color is.

    3.18 Members Who Have Only Purchased Gear

    Display the members name and ID along with their shipping address. This will allowthe club to target who has only been purchasing gear and will use the list to send

    letters, offers, and promotional products to entice the members to make accessories

    purchases.

    2nd

    Document: The places to add draft query statements go here.

    3rd

    Document: The place to add the results final, tested queries

    and results go where this color is.

    3.19 Members Who Have Only Purchased Accessories

    Display the members name and ID along with their shipping address. This will

    allow the club to target who has only been buying accessories and will use the list tosend letters, offers, and promotional products to entice the members to make

    purchases in the gear category. Some members may only want to buy direct for their

    gear and this will serve as a way to convince them we have quality gear for the game.

    2nd

    Document: The places to add draft query statements go here.

    3rd

    Document: The place to add the results final, tested queries

    and results go where this color is.

    3.20 Events Grouped by Members Who Posted Them

    Display the members IDs and names, along with the events they have posted so the

    other members can quickly find a member they would like to follow and determinewhich events they are most interested in.

  • 8/2/2019 EXAMPLE Oracle Database Documents Gawlik+OTHER+DOCUMENTS

    17/17

    Page 17 of17

    2nd

    Document: The places to add draft query statements go here.

    3rd

    Document: The place to add the results final, tested queries

    and results go where this color is.