You are on page 1of 78

Brewery Management

System Phase 2
Unique Brewing Company
G6 Consulting Group, Inc.
Prepared By: Group 6
Juan Castillo
Jeffrey Engerski
Hannah Messman
Timothy Schlehuber

12/1/2012

Table of Contents
Getting Started
Why SQL Server?
Starting The Application
Opening Your Application
Attaching Your Database
Locating Your Database
Adding Your Database
Opening Your Database
Database Diagram
Viewing Your Database Diagram
Tables
Viewing Your Tables
Editing Your Tables
Adding To Your Tables
Data Constraints
Views
View #1
View #2
View #3
View #4
View #5
Reports
Opening Reports
Report #1
Report #2
Report #3
Report #4
Report #5
Appendix A
Entity Relationship Diagram
Relational Schema
Data Dictionary
Appendix B
SQL Server Database Diagram
Appendix C
Report #1 Print Out
Report #2 Print Out
Report #3 Print Out
Report #4 Print Out
Report #5 Print Out
Appendix D
Beer Table Data
Bottle Table Data
Brew Table Data
Company Table Data
Crop Table Data
Customer Table Data
Customer Order Table Data
Customer Order Line Table Data
Employee Table Data
Field Table Data
Individual Table Data

.................................................................................................................
.................................................................................................................
.................................................................................................................
.................................................................................................................
.................................................................................................................
.................................................................................................................
.................................................................................................................

3
3
4
5
6
7
8

.................................................................................................................

.................................................................................................................
.................................................................................................................
.................................................................................................................
.................................................................................................................

10
11
11
12

.................................................................................................................
.................................................................................................................
.................................................................................................................
.................................................................................................................
.................................................................................................................

13
15
17
19
21

.................................................................................................................
.................................................................................................................
.................................................................................................................
.................................................................................................................
.................................................................................................................
.................................................................................................................

23
25
27
29
31
33

.................................................................................................................
.................................................................................................................
.................................................................................................................

35
37
38

.................................................................................................................

39

.................................................................................................................
.................................................................................................................
.................................................................................................................
.................................................................................................................
.................................................................................................................

40
41
42
43
50

.................................................................................................................
.................................................................................................................
.................................................................................................................
.................................................................................................................
.................................................................................................................
.................................................................................................................
.................................................................................................................
.................................................................................................................
.................................................................................................................
.................................................................................................................
.................................................................................................................

53
54
55
56
57
58
59
60
61
62
63

Ingredient Table Data


Product Table Data
Vendor Table Data
Vendor Order Table Data
Vendor Order Line Table Data

.................................................................................................................
.................................................................................................................
.................................................................................................................
.................................................................................................................
.................................................................................................................

64
65
66
67
68

Getting Started
Why SQL Server?
SQL Server is a Relational Database Management System, or RDBMS, that allows for the collection of
data and facilitates the transformation of that data into information. Alone, a collection of contacts in
an address book would simply serve as a useful tool in managing contacts, and contacts alone. A large
file cabinet could be used to store and organize invoices, but would take up tremendous hours to sort
and manage. Even more modern table applications like Excel limited by their capabilities. SQL Server
allows for meaningful, quick, and powerful data manipulations that can empower a growing business
with competitive knowledge to gain an edge over their competition.

Starting the Application


Once SQL Server has been installed at a workstation, you can begin to access your application by clicking
on the Start Menu, then All Programs, then Microsoft SQL Server 2008 R2, and then SQL Server
Management Studio.

GETTING STARTED, CONTINUED


Opening Your Application
Once the application opens click Connect, then right click Databases in the Object Explorer pane, the
click on Attach

Getting Started, Continued


Attaching Your Database
In the window that appears click Add...

Getting Started, Continued


Locating Your Database
In the next window that appears, you must now find the drive you inserted the CD-ROM into and then
attach the UBC.mdf file and click OK.
Note: The UBC.log file must also be stored with the UBC.mdf file or it will not attach correctly.

Getting Started, Continued


Adding Your Database
We now return to the previous screen, note the UBC.mdf and UBC.log are now both ready to be
attached to Microsoft SQL Server. Now click OK.

Getting Started, Continued

Opening Your Database


Now expand your Databases folder in the Object Explorer pane by clicking the + sign next to Databases
folder. The UBC database should appear. If not, click the refresh button at the top of the pane. Next,
expand the UBC folder.

10

Database Diagram
Viewing the Database Diagram
The database diagram gives a graphical representation of your database. You may want to view this
diagram to see the relationships between tables, and columns of stored data in those tables. Click the +
next to Database Diagrams in the Object Explorer pane, and then click dbo.Database_Diagram. See
Appendix B for a copy of the Database Diagram.

11

Tables
Viewing Your Tables
To view the data in your tables click the + next to Tables in the Object Explorer pane. Then right click on
the table desired to view and click on Select Top 1000 Rows. The results will appear in the bottom right
of the screen.

12

Tables, Continued
Editing Your Tables
To edit the data contained your tables. Right click the table desired and click Edit Top 200 Rows. The
results will appear on the right of your screen.

Adding To Your Tables


To insert new data into a table, right click the desired table, and begin entering data into row with
NULL.

13

Note: Columns that are greyed out like BeerID below will automatically enter in new information.

Tables, Continued
Data Constraints
Your SQL Server Database will recognize bad data entry, and will alert you if you try to enter in an
impossible data type. For example, below lager was entered under the BrewDate column. If this
happens, simply click OK and correct the error.

14

Views

15

Ingredient Amount View


This view will allow the user to see the beer name, ingredient used in the beer, the amount used in that
beer, the date it was used, and beer type. This view is great information for your customers and can be
used to label the beers produced. This information could also be taken to the company website to give
visibility into your companys beers. Management could also use this information to allocate ingredients.
To access this information, click the + next to views, then right click dbo.BeerIngredientAmounts_vw and
click Select Top 1000 Rows

16

Views, Continued
Ingredient Amount View Sample
Below is a sample of the data contained in this view.

17

Views, Continued
Customer Purchases View
This view allows the users to see the customer type as company or individual, customer name, product
purchased, the total dollar amount of the purchase, and the number of that product purchased. This
information would be great for management to analyze for a variety of key factors. First, the top selling
items by dollar could be addressed. The top selling items by item count could be identified. Also, trends
could be identified with certain customer types and products, amounts, or quantity. To access this
information, click the + next to views, then right click dbo.BeersOrderedPerCustomer_vw and click
Select Top 1000 Rows

18

Views, Continued
Customer Purchases View Sample
Below is a sample of the data contained in this view.

19

Views, Continued
Bottle Vendor Purchases View
This view allows the users to see the bottle vendor company name, date the purchased was made, glass
color purchased, bottle capacity, cost per bottle, and total cost of that bottle type. This information
would be great for management to track and manage costs. The lowest priced vendors could be
identified. The vendor we do the most business with in terms of dollars, or bottle quantity could also be
identified. Also, trends could be identified with certain bottle vendors with prices. To access this
information, click the + next to views, then right click dbo. BottleLineItemOrders_vw and click Select Top
1000 Rows

20

Views, Continued
Bottle Vendor Purchases View Sample
Below is a sample of the data contained in this view.

21

Views, Continued

22

Crop Harvest and Planting View


This view allows the users to see the field being used, the crop being planted, both planting and
harvesting dates, the crop size in pounds, and the employee responsible for the field. This view is useful
the management to see who is managing what field and crop and when. This information could be used
to balance and maximize employee workload. To access this information, click the + next to views, then
right click dbo. CropHarvistAndPlanting_vw and click Select Top 1000 Rows

23

Views, Continued
Crop Harvest and Planting View Sample
Below is a sample of the data contained in this view.

24

Views, Continued
Customer Order View
This view allows the users to see the customer type as either individual or company, name of the
customer, total dollar amount of the order, the dates ordered and shipped, and the number of products
ordered. This view is useful to management because it can identify which the largest or smallest
customer in terms of dollar sales or item quantity. Also, trends between dates ordered and customer
could be identified to see when a customer purchases the most or least products during the year. To
access this information, click the + next to views, then right click dbo. CropHarvistAndPlanting_vw and
click Select Top 1000 Rows

25

Views, Continued
Customer Order View Sample
Below is a sample of the data contained in this view.

26

Reports
Opening Reports
In order to view the report project you must first open SQL Server Business Intelligence Development
Studio and the open the UBC_Reports project.
As part of the SQL Server install, SQL Server Business Intelligence Studio was also installed. You can open
the application by clicking on the Start Menu, then All Programs, then Microsoft SQL Server 2008 R2,
and then SQL Server Business Intelligence Development Studio .

Once Studio opens click File, then Open and then Project/Solution.

27

Reports, Continued
When the file dialog box opens navigate to the UBC_Reports.sln file, select the file and click the open
button.

28

Once the solution is open expand the solution explorer tab, then expand the report folder to see all the
available reports.

29

Reports, Continued
Report #1: Order Receipt
This report can be used to generate receipts for customer orders. To open the report, double click on
the Order Reciept.rdl file in the Solution Explorer window. This will open the report. Then click the
preview button at the top of the report window.

When the preview window opens the options will be displayed for selecting a customer and order date.
Select a customer and then select an order date associated with the customer. You will notice that the
order date is not available until a customer is selected. After selecting all options press the View Report
button.

30

Reports, Continued
When generate the report will show UBCs address, the customers address, a detailed report of the
order and a grand total for the entire order.

To save the report click the save button and select the format you want to save the report as, PDF in this
case. Save the report on your hard drive.

31

Reports, Continued

Report #2: Purchase Order


This report generates a purchase order used to order glass bottles from a vendor. To open the report
double click the file named Purchase Order.rdl in the Solution Explorer. Once open click the Preview tab.

When the preview window opens the options will be displayed for selecting a vendor and order date.
Select a vendor and then select an order date associated with the vendor. You will notice that the order

32

date is not available until a vendor is selected. After selecting all options press the View Report button.

Reports, Continued

When generated this report shows the number and types of bottles included in the order, UBCs address
information and the vendors address information and a grand total for the order.

33

To save the report click the save button and select the format you want to save the report as, PDF in this
case. Save the report on your hard drive.

34

Reports, Continued

Report #3: Annual Crop Production Report


This Report gives details on the crop production each year and is grouped by year and then crop type.
For each crop type the data is further broken down by the date it was planted and harvested, the total
size of the crop, the field it was grown in and the employee responsible for the crop. To open this,
report double click the Unique Brewing Company Annual Crop Report.rdl in the solution explorer
window. Once the report is open click the Preview tab an the report will be generated.

35

Reports, Continued
The sample report below is a sample of the report output. At the end of each years section a total of
the total crop production in pounds is given.

This report can be exported to one of several formats by clicking the save button on the report toobar
and selecting a format. Once the save window opens save the file to a location on your harddrive.

36

Reports, Continued
Report #4: Beer Purchases by Customer
This report displays all the purchases for each of UBCs customers. The report identifies the customer
who purchased the product, the date of their orders, the beers they ordered, the total amount of their
purchase and the grand total for all purchases made by the customer. To open this report double click
the Unique Brewing Company Beer Purchases by Customer Report.rdl in the Solution Explorer
window. Once the report is open click the preview button.

Once the preview is open the report will generate. There is one customer per page so you will need to
navigate between the pages using the blue arrows on the report toolbar
. The sample
below shows what an individual customers page would look like when the report is generated.

37

Reports, Continued

This report can be exported to one of several formats by clicking the save button on the report toobar
and selecting a format. Once the save window opens save the file to a location on your harddrive.

38

39

Reports, Continued
Report #5: Product Report
This Report shows all the products created for each beer made by UBC. The report groups all the
products by beer and then details the, color and size of bottle, the case quantity, bottling date, and price
for each product. Top open this report double click the Unique Brewing Company Product Report.rdl
file in the Solution Explorer window. Once open click the Preview tab.

Once the preview is open the report will generate. You will need to navigate between pages using the
blue arrows on the report toolbar
report.

. The sample below shows what a page of the

40

This report can be exported to one of several formats by clicking the save button on the report toobar
and selecting a format. Once the save window opens save the file to a location on your harddrive.

Reports, Continued

41

Appendix A, Entity Relationship Diagram

42

Unique Brewing Company: Conceptual Data Model


Planting Date
Harvesting Date
Crop Size
Field

Ingredient

Field Name
Size
Soil Type

Ingredient Name
QOH
grows

manages

contains

Employee
Employee ID
Name
(First Name, Last Name)
Position
Address
(Street, City, State, Zip)
Phone Number

Ingredient Amount

Beer

brews

Beer ID
Name
Brew Date
Category
Percent Alcohol
Production Volume

contains

QTY Ordered
QTY Shipped
Price Per Unit
Product
Product ID
Case QTY
Price
Bottling Date

Supervises

Customer Order

is contained in

Customer Order ID
Date Ordered
Date Shipped
[Total Price]

Bottle
Bottle ID
Capacity
Glass Color
QOH
Usual Cost

available

includes

Vendor

uses
places

QTY Ordered
QTY Received
Cost Per Bottle

Vendor Order

Vendor ID
Company Name
Address
(Street, City, State, Zip)
Phone Number
Contact Name
(Contact First Name, Contact Last Name)

Customer
Customer ID
Address
(Street, City, State, Zip)
Phone Number
Customer Type

Vendor Order ID
Date Placed
Date Received
[Total Cost]

Customer Type=

d
I

Individual
Name
(First Name, Last Name)
Date of Birth
[Age]

fills

43

Company
Company Name
Tax ID

Appendix A, Relational Schema

44

Unique Brewing Company: Logical Data Model


Employee

EmployeeID

Field

FieldName

Crop

FieldName

FirstName

Size

IngredientName

QOH

Brew

IngredientName

BeerID

Product

Bottle

Vendor

VendorOrderLine

VendorOrder

CustomerOrderLine

CustomerOrder

Position

SoilType

Street

City

Zip

State

CropSize

IngredientAmount

Name

ProductID

BeerID

BottleID

CaseQTY

Price

BottlingDate

BottleID

Capacity

GlassColor

QOH

UsualCost

Vendor

BottleID

ProductID

Category

CompanyName

DatePlaced

CustomerID

Company

CustomerID

Individual

CustomerID

City

Street

CompanyName

FirstName

State

BrewDate

Zip

ProductionVolume

PhoneNumber

EmployeeID

ContactFirstName ContactLastName

QTYShipped CostPerBottle

DateReceived

VendorID

CustomerOrderID QTYOrdered

CustomerOrderID CustomerID

Customer

PercentAlcohol

Street

VendorOrderID QTYOrdered

VendorOrderID

SupervisorID

HarvestingDate

BeerID

VendorID

PhoneNumber

EmployeeID

IngredientName PlantingDate

Ingredient

Beer

LastName

QTYShipped

PricePerUnit

DateShipped DateOrdered

City

State

TaxID

LastName

DateOfBirth

45

Zip

PhoneNumber

CustomerType

Appendix A, Data Dictionary

46

Table: Beer
Column Name
BeerID
Name
BrewDate
Category
PercentAlcohol
ProductionVolume
Employee

Description
PK; Unique sequential beer number
Beer name
Date when beer was brewed
Type of beer
Beer percentage of alcohol by volume
Total beer production volume (in gallons)
FK to Employee table; Brew Master in charge of brewing beer

Data Type
smallint
varchar
date
varchar
tinyint
decimal
smallint

Table: Bottle
Column Name
BottleID
Capacity
GlassColor
QOH
Usual Cost
VendorID

Description
PK; Unique sequential bottle number
Volume of bottle
Color of bottle glass
Quantity of bottles on hand
Typical cost of bottle type
FK to Vendor table

Data Type Size Identity Unique Default


tinyint
Y
tinyint
12
varchar
5
smallint
smallmoney
smallint

Table: Brew
Column Name
IngredientName
BeerID
IngredientAmount

Description
CPK; FK to Ingredient table
CPK; FK to Beer table
Amount of ingredient used to brew beer (in pounds)

Data Type Size Identity Unique Default


varchar 30
smallint
decimal (6,2)

Check

Table: Company
Column Name
CustomerID
CompanyName
TaxID

Description
FK to Customer table
Name of company
Tax identification number

Data Type Size Identity Unique Default


int
varchar 50
char
10
Y

Check

Table: Crop
Column Name
FieldName
IngredientName
PlantingDate
CropSize
HarvestingDate

Description
CPK; FK to Field table
CPK; FK to Ingredient table
CPK;Date crop was planted
Crop size
Date crop was harvested

Data Type
varchar
varchar
date
decimal
date

Table: Customer
Column Name
CustomerID
Street
City
State
Zip
PhoneNumber
CustomerType

Description
PK; Unique sequential customer number
Customer street
Customer city
Customer state
Customer zip code
Customer phone number
Type of customer

Data Type
int
varchar
varchar
char
char
char
char

Size Identity Unique Default


Y
30
25
2
5
14
1
'C'

Table: CustomerOrder
Column Name
CustomerOrderID
CustomerID
DateOrdered
DateShipped

Description
PK; Unique sequential order number
FK to Customer table
Date customer order was placed
Date customer order was shipped

Data Type
int
int
date
date

Size Identity Unique


Y

Table: CustomerOrderLine
Column Name
Description
ProductID
CPK; FK to Product table
CustomerOrderID
CPK; FK to CustomerOrder table
QTYOrdered
Quantity of product ordered
QTYShipped
Quantity of product shipped
PricePerUnit
Price of each product unit

Size Identity Unique Default


Y
50
Y
GETDATE()
20

Check

>=GETDATE()
>=.005 AND <=.250
>0

(3,3)

Allow Nulls Index


Y
Y

Y
Y
Y

Size Identity Unique Default


20
30

Check
12 OR 22
'Green' OR 'Brown' OR 'Blue' OR 'Clear'
>=0
>0.00

Data Type Size Identity Unique


smalint
int
smallint
smallint
smallmoney

LIKE '[0-9][0-9]-[0-9][0-9][0-9][0-9][0-9][0-9][0-9]'

Check

47

Check

LIKE '[A-Z][A-Z]'
LIKE '[0-9][0-9][0-9][0-9][0-9]'
LIKE '([0-9][0-9][0-9]) [0-9][0-9][0-9]-[0-9][0-9][0-9][0-9]'
'C' OR 'I'

Default

Check

GETDATE()

<=GETDATE()
>=DateOrdered

Default

Allow Nulls Index


Y
Y

>0.00

>=GETDATE()
>=0.00
>PlantingDate

(7,2)

Allow Nulls Index


Y

Check

>0
>=0 AND <=QTYOrdered
>0

Allow Nulls Index


Y
Y
Y

Allow Nulls Index


Y
Y
Y
Y
Y

Allow Nulls Index


Y

Y
Y

Allow Nulls Index


Y
Y
Y

Allow Nulls Index


Y
Y
Y

Appendix A, Data Dictionary Continued


Table: Employee
Column Name
EmployeeID
FirstName
LastName
Position
Street
City
State
Zip
Phone Number
SupervisorID

Description
PK; Unique sequential employee number
Personnel first name
Personnel last name
Personnel job title
Personnel street
Personnel city
Personnel state
Personnel zip code
Personnel phone number
Recursive FK; synonym for EmployeeID; employee supervisor

Data Type
smallint
varchar
varchar
varchar
varchar
varchar
char
char
char
smallint

Size Identity Unique


Y
15
20
20
30
25
2
5
14

Default

Table: Field
Column Name
FieldName
Size
SoilType
EmployeedID

Description
PK; Unique name of field
Field size in acres
Field primary soil type
FK to Employee table; employee who manages field

Data Type
varchar
decimal
varchar
smallint

Size Identity Unique


20
(4,2)
15
Y

Default

Table: Individual
Column Name
CustomerID
FirstName
LastName
DateOfBirth

Description
PK; FK to Customer table
Individual first name
Individual last name
Individual date of birth

Data Type
int
varchar
varchar
date

Size Identity Unique

Default

Table: Ingredient
Column Name
IngredientName
QOH

Description
PK; Unique name of ingredient
Quantity of ingredient on hand in pounds

Data Type
varchar
decimal

Size Identity Unique


30
(7,2)

Default

Table: Product
Column Name
ProductID
BeerID
BottleID
CaseQTY
BottleDate
Price

Description
PK; Unique product number
FK to beer table
FK to bottle table
Product quantity contained in case
Date when the beer was bottled
Actual price of beer

Data Type Size Identity Unique


smallint
Y
smallint
tinyint
tinyint
date
smallmoney

Default

Table: Vendor
Column Name
VendorID
CompanyName
Street
City
State
Zip
PhoneNumber
ContactFirstName
ContactLastName

Description
PK; Unique vendor number
Name of company
Vendor street
Vendor city
Vendor state
Vendor zip code
Vendor phone number
Company contact first name
Company contact last name

Data Type
tinyint
varchar
varchar
varchar
char
char
char
varchar
varchar

Size Identity Unique


Y
50
30
25
2
5
14
Y
15
20

Default

Table: VendorOrder
Column Name
VendorOrderID
DatePlaced
DateReceived
VendorID

Description
PK; Unique sequential order number
Date vendor order was placed
Date vendor order was received
FK to Vendor table

Data Type
int
date
date
tinyint

Size Identity Unique


Y

Default

Check

GETDATE()

<=GETDATE()
>=DatePlaced

Table: VendorOrderline
Column Name
Description
BottleID
CPK; FK to Bottle table
VendorOrderID
CPK; FK to VendorOrder table
QTYOrdered
Quantity of bottles ordered
QTYShipped
Quantity of bottles shipped
CostPerBottle
Cost of each bottle

Check

Allow Nulls Index


Y
Y

'WA'

LIKE '[A-Z][A-Z]'
LIKE '[0-9][0-9][0-9][0-9][0-9]'
LIKE '([0-9][0-9][0-9]) [0-9][0-9][0-9]-[0-9][0-9][0-9][0-9]'

Check

Y
Y

Allow Nulls Index


Y

>0.00
Y

Check

Allow Nulls Index


Y

15
20

Y
<=GetDate() - (21*365.25)

Check
>=0.00

Check

Allow Nulls Index


Y
Y

Allow Nulls Index


Y
Y
Y

>0 AND <=24


>=GETDATE()
>0

Check

Allow Nulls Index


Y

LIKE '[A-Z][A-Z]'
LIKE '[0-9][0-9][0-9][0-9][0-9]'
LIKE '([0-9][0-9][0-9]) [0-9][0-9][0-9]-[0-9][0-9][0-9][0-9]'

Allow Nulls Index


Y
Y
Y

Data Type Size Identity Unique


tinyint
int
int
int
smallmoney

48

Default

Check

>0
>=0 AND <=QTYOrdered
>0

Allow Nulls Index


Y
Y
Y

Appendix B, SQL Server Database


Diagram

49

Appendix C
Report #1 Printout: Order Receipt Report

Order Receipt
Date Generated: 12/1/2012
FROM :
Unique Brewing Company
4602 E. Thompson Dr.
Spokane, WA 99201
(555) 444-5059
TO:
Strayer Beverage
465 Union Blvd
Baton Rouge, LA 70810
Phone: (225) 555-6381

Date Ordered: 9/26/2012


Beer Name
Back to School

Capacity

Case Size

Single Case
Price

Quantity
Ordered

Total
Purchase

22 oz.

$11.00

20

$220.00

22 oz.

12

$20.75

20

$415.00

40

$635.00

Totals
Pumpkin Punch

12 oz.

12

$7.75

30

$232.50

22 oz.

12

$15.50

30

$465.00

60

$697.50

Totals
Grand Total

$1,332.50

50

Appendix C, Continued
Report #2 Printout: Purchase Order Report

Purchase Order
Date Generated: 12/1/2012
Date Ordered: 1/10/2011
FROM :
Unique Brewing Company
4602 E. Thompson Dr.
Spokane, WA 99201
(555) 444-5059

TO :
Glassworks
11201 N Mckinley Dr
Tampa, FL 33612
(813) 555-9904

Glass Color

Capacity

Cost Per Bottle

Cost

Brown

12 oz.

$0.22

220.00

22 oz.

$0.24

240.00

Total
Green

460.00
12 oz.

$0.23

115.00

22 oz.

$0.26

130.00

Total

245.00

Grand Total

705.00

51

Appendix C, Continued
Report #3 Printout: Annual Crop Production Report

Unique Brewing Company - Annual Crop Production Report


Generated On: 12/1/2012
Year Planted Crop

Planting Date Harvest Date

2010

Crop Size Employee

Field Name

6900.00
Mt. Hood Hops

2/10/2010

8/9/2010

5000.00 Rodriguez, Jose

UBC Prime

Victory Malt

4/10/2010

10/8/2012

1200.00 Rodriguez, Jose

UBC Prime

Blue Berries

6/23/2010

10/3/2010

300.00 Rodriguez, Jose

UBC Prime

German Pilsner
Malt

3/10/2010

8/4/2010

400.00 Day, Sam

UBC Valley

Wheat

4/15/2011

9/12/2011

935.00 Jones, Elizabeth

UBC Cheney

Belgain Malt

6/13/2011

9/5/2011

1000.00 Jones, Elizabeth

UBC Cheney

Mt. Hood Hops

2/9/2011

8/6/2011

5300.00 Rodriguez, Jose

UBC Prime

Oats

3/5/2011

8/10/2011

1000.00 Rodriguez, Jose

UBC Prime

Pumpkin

5/1/2011

9/26/2011

500.00 Rodriguez, Jose

UBC Prime

Blue Berries

5/10/2011

10/7/2011

250.00 Rodriguez, Jose

UBC Prime

Rasberries

5/13/2011

10/6/2011

200.00 Roland, Sally

UBC Prime 2

Black Barley

3/5/2011

8/10/2011

500.00 Day, Sam

UBC Valley

German Pilsner
Malt

4/10/2011

9/5/2011

500.00 Day, Sam

UBC Valley

Victory Malt

4/12/2011

10/4/2011

1000.00 Day, Sam

UBC Valley

Rye Malt

5/1/2011

11/6/2011

3200.00 Day, Sam

UBC Valley

2011

14385.00

2012

10775.00
White Wheat Malt 3/1/2012

7/1/2012

600.00 Jones, Elizabeth

UBC Cheney

Belgain Malt

4/13/2012

9/10/2012

950.00 Jones, Elizabeth

UBC Cheney

Wheat

5/1/2012

9/12/2012

1030.00 Jones, Elizabeth

UBC Cheney

Mt. Hood Hops

2/2/2012

8/7/2012

4700.00 Rodriguez, Jose

UBC Prime

Blue Berries

5/28/2012

10/13/2012

320.00 Rodriguez, Jose

UBC Prime

Simcoe Hops

2/13/2012

6/15/2012

400.00 Roland, Sally

UBC Prime 2

Cascade Hops

3/10/2012

7/2/2012

800.00 Roland, Sally

UBC Prime 2

Pumpkin

5/1/2012

9/25/2012

450.00 Roland, Sally

UBC Prime 2

Rasberries

5/2/2012

10/14/2012

275.00 Roland, Sally

UBC Prime 2

Victory Malt

4/12/2012

10/4/2012

Rye Malt

5/3/2012

1/1/0001

52

1250.00 Day, Sam

UBC Valley

Day, Sam

UBC Valley

Appendix C, Continued
Report #4 Printout: Beer Purchases by Customer Report

Unique Brewing Company - Beer Purchases by Customer


Report
Date Generated: 12/1/2012
Albertons
19201 Broadway Blvd
Golden, CO 80401
(303) 555-7875
Date
Ordered

Beer Name Capacity

Case Size

Single Case
Price

Quantity
Ordered

Total
Purchase

12

18.00

26

$468.00

12/17/2011
Blurry Santa

22 oz.

Total

$468.00

6/20/2012
Broadway
Pilsner

12 oz.

12

13.75

40
Total
Grand Total

53

$550.00
$550.00
$1,018.00

Smith
15621 N 62nd St
Spokane, WA 99206
(504) 555-1102
Date
Ordered

Beer Name Capacity

Case Size

Single Case
Price

Quantity
Ordered

Total
Purchase

12

17.75

$71.00

5/22/2011
East of
Mexico

22 oz.

Total

$71.00

12/16/2011
Blurry Santa

22 oz.

12

18.00

3
Total
Grand Total

54

$54.00
$54.00
$125.00

Strayer Beverage
465 Union Blvd
Baton Rouge, LA 70810
(225) 555-6381
Date
Ordered

Beer Name Capacity

Case Size

Single Case
Price

Quantity
Ordered

Total
Purchase

9/14/2011
Sampson Ale

12 oz.

24

24.50

30

$735.00

Sampson Ale

22 oz.

24

32.50

30

$975.00

Total

$1,710.00

8/14/2012
Back to School 12 oz.

8.50

20

$170.00

Back to School 12 oz.

12

15.75

30

$472.50

Back to School 22 oz.

11.00

20

$220.00

Back to School 22 oz.

12

20.75

30

$622.50

Total

$1,485.00

9/26/2012
Back to School 22 oz.

11.00

20

$220.00

Back to School 22 oz.

12

20.75

20

$415.00

Pumpkin
Punch

12 oz.

12

7.75

30

$232.50

Pumpkin
Punch

22 oz.

12

15.50

30

$465.00

55

Total

$1,332.50

Grand Total

$4,527.50

Sunshine Distribution
11201 N Mckinley Dr
Tampa, FL 33612
(813) 555-4286
Date
Ordered

Beer Name Capacity

Case Size

Single Case
Price

Quantity
Ordered

Total
Purchase

9/12/2011
Sampson Ale

12 oz.

12

12.75

20

$255.00

Sampson Ale

12 oz.

24

24.50

20

$490.00

Sampson Ale

22 oz.

12

16.75

20

$335.00

Sampson Ale

22 oz.

24

32.50

20

$650.00

Total

$1,730.00

1/20/2012
Blue Man Stout 12 oz.

12

12.75

30

$382.50

Blue Man Stout 22 oz.

12

20.50

30

$615.00

Total

$997.50

6/23/2012
Broadway
Pilsner

12 oz.

12

13.75

20

$275.00

Broadway
Pilsner

22 oz.

12

18.95

20

$379.00

Total

$654.00

9/13/2012
Back to School 12 oz.

12

15.75

30

$472.50

Back to School 22 oz.

12

20.75

30

$622.50

56

Total

$1,095.00

Grand Total

$4,476.50

Thompson
654 Provost Rd
Spokane, WA 99612
(504) 555-1345
Date
Ordered

Beer Name Capacity

Case Size

Single Case
Price

Quantity
Ordered

Total
Purchase

12

16.50

$33.00

5/26/2012
Little Bit of
Sunshine

22 oz.

57

Total

$33.00

Grand Total

$33.00

Total Beverage
1218 N Industry Dr
Spokane, WA 99201
(504) 555-6812
Date
Ordered

Beer Name Capacity

Case Size

Single Case
Price

Quantity
Ordered

Total
Purchase

Blue Eye Stout 12 oz.

24

16.75

20

$335.00

Blue Eye Stout 12 oz.

12

9.00

20

$180.00

Blue Eye Stout 22 oz.

12

12.75

20

$255.00

2/1/2011

Total

$770.00

3/25/2011
Holdem Pilsner 12 oz.

12

12.00

25

$300.00

Holdem Pilsner 22 oz.

12

18.00

20

$360.00

Roger Stomper 12 oz.

9.00

10

$90.00

Roger Stomper 12 oz.

12

15.00

20

$300.00

Roger Stomper 22 oz.

12.00

10

$120.00

Roger Stomper 22 oz.

12

18.50

20

$370.00

Total

$1,540.00

5/17/2011
Berry Stout

12 oz.

12

9.75

20

$195.00

Berry Stout

22 oz.

12

14.50

20

$290.00

East of Mexico 12 oz.

12

13.75

20

$275.00

Total

$760.00

12/5/2011
Blurry Santa

12 oz.

12

13.00

30

$390.00

Blurry Santa

22 oz.

12

18.00

20

$360.00

Total

$750.00

6/18/2012
Little Bit of
Sunshine

12 oz.

12

12.50

10

$125.00

Little Bit of
Sunshine

22 oz.

12

16.50

20

$330.00

Summer
Sunshine

12 oz.

8.00

15

$120.00

Summer
Sunshine

12 oz.

12

16.00

15

$240.00

Summer
Sunshine

22 oz.

12.00

20

$240.00

58

Summer
Sunshine

22 oz.

12

24.00

20
Total

$480.00
$1,535.00

8/19/2012
Back to School 12 oz.

8.50

20

$170.00

Back to School 12 oz.

12

15.75

20

$315.00

Back to School 22 oz.

11.00

30

$330.00

Back to School 22 oz.

12

20.75

30

$622.50

59

Total

$1,437.50

Grand Total

$6,792.50

Appendix C, Continued
Report #5 Printout: Product Report

Unique Brewing Company - Product Report


Generated On: 12/1/2012
Beer
Name

Bottling
Date

Percent
Alcohol

Category

Capacity

Case
Quantity

Glass
Color

Price

Brewmaster

8/12/2012 0.120

lager

12

Clear

8.5000

Grant

8/12/2012 0.120

lager

12

12

Clear

15.7500

Grant

8/13/2012 0.120

lager

22

Clear

11.0000

Grant

8/13/2012 0.120

lager

22

12

Clear

20.7500

Grant

5/17/2011 0.080

stout

12

12

Blue

9.7500

Johson

5/17/2011 0.080

stout

12

24

Blue

18.0000

Johson

5/16/2011 0.080

stout

22

12

Blue

14.5000

Johson

5/16/2011 0.080

stout

22

24

Blue

26.0000

Johson

1/26/2011 0.160

stout

12

24

Brown

16.7500

Johson

1/27/2011 0.160

stout

12

12

Brown

9.0000

Johson

2/1/2011 0.160

stout

22

24

Brown

21.5000

Johson

2/3/2012 0.160

stout

22

12

Brown

12.7500

Johson

1/15/2012 0.160

stout

22

12

Brown

20.5000

Johson

1/14/2012 0.160

stout

12

12

Brown

12.7500

Johson

12/2/2011 0.230

stout

22

12

Blue

18.0000

Grant

12/1/2011 0.230

stout

12

12

Blue

13.0000

Grant

6/4/2012 0.150

pilsner

12

Brown

9.5000

Grant

6/5/2012 0.150

pilsner

12

12

Brown

13.7500

Grant

6/8/2012 0.150

pilsner

22

Brown

12.7500

Grant

6/8/2012 0.150

pilsner

22

12

Brown

18.9500

Grant

Back to
School

Berry Stout

Blue Eye
Stout

Blue Man
Stout

Blurry
Santa

Broadway
Pilsner

60

East of
Mexico
4/17/2011 0.090

ale

22

12

Clear

17.7500

Eaton

4/16/2011 0.090

ale

12

12

Clear

13.7500

Eaton

8/3/2011 0.110

ale

12

Clear

7.5000

Eaton

8/3/2011 0.110

ale

12

12

Clear

14.0000

Eaton

8/5/2011 0.110

ale

22

Clear

10.0000

Eaton

8/5/2011 0.110

ale

22

12

Clear

19.7500

Eaton

1/14/2011 0.100

ale

12

Green

8.0000

Grant

1/16/2011 0.100

ale

12

12

Green

16.0000

Grant

1/17/2011 0.100

ale

22

Green

13.0000

Grant

1/20/2011 0.100

ale

22

12

Green

19.0000

Grant

3/17/2011 0.120

pilsner

22

12

Brown

18.0000

Johson

3/16/2011 0.120

pilsner

12

12

Brown

12.0000

Johson

5/17/2012 0.130

pilsner

22

12

Clear

16.5000

Johson

5/16/2012 0.130

pilsner

12

12

Clear

12.5000

Johson

9/15/2012 0.130

ale

12

12

Brown

7.7500

Johson

9/16/2012 0.130

ale

22

12

Brown

15.5000

Johson

2/20/2011 0.180

ale

22

Green

12.0000

Grant

2/21/2011 0.180

ale

22

12

Green

18.5000

Grant

2/18/2011 0.180

ale

12

Green

9.0000

Grant

2/19/2011 0.180

ale

12

12

Green

15.0000

Grant

9/19/2011 0.170

ale

22

12

Brown

16.7500

Johson

9/19/2011 0.170

ale

22

24

Brown

32.5000

Johson

9/17/2011 0.170

ale

12

12

Brown

12.7500

Johson

9/18/2011 0.170

ale

12

24

Brown

24.5000

Johson

End of
Summer

Hammer
Ale

Holdem
Pilsner

Little Bit of
Sunshine

Pumpkin
Punch

Roger
Stomper

Sampson
Ale

61

Summer
Sunshine
5/8/2012 0.110

ale

12

Blue

8.0000

Johson

5/8/2012 0.110

ale

12

12

Blue

16.0000

Johson

5/9/2012 0.110

ale

22

Blue

12.0000

Johson

5/9/2012 0.110

ale

22

12

Blue

24.0000

Johson

3/18/2012 0.100

Pale Ale

12

12

Brown

11.5000

Eaton

3/15/2012 0.100

Pale Ale

22

12

Brown

16.7500

Eaton

7/13/2011 0.220

lager

12

12

Brown

16.7500

Eaton

7/14/2011 0.220

lager

12

12

Brown

22.5000

Eaton

Tall Man

T-Rex

62

Appendix D
Beer Table
BeerID
-----3
4
6
8
9
11
12
13
15
18
19
21
22
23
24
25
26

Name
---------------------Blue Eye Stout
Hammer Ale
Holdem Pilsner
Roger Stomper
T-Rex
Sampson Ale
Blue Man Stout
Tall Man
Broadway Pilsner
Pumpkin Punch
Berry Stout
Blurry Santa
Summer Sunshine
East of Mexico
End of Summer
Little Bit of Sunshine
Back to School

BrewDate
---------2011-01-20
2011-01-12
2011-03-15
2011-02-17
2011-07-10
2011-09-15
2012-01-13
2012-03-16
2012-06-03
2012-09-13
2011-05-16
2011-11-26
2012-05-06
2011-04-15
2011-08-01
2012-05-12
2012-08-09

Category
-------------stout
ale
pilsner
ale
lager
ale
stout
Pale Ale
pilsner
ale
stout
stout
ale
ale
ale
pilsner
lager

(17 row(s) affected)

63

PercentAlcohol
--------------0.160
0.100
0.120
0.180
0.220
0.170
0.160
0.100
0.150
0.130
0.080
0.230
0.110
0.090
0.110
0.130
0.120

ProductionVolume
---------------560
150
560
150
245
1120
560
320
560
1120
2240
1530
1200
560
560
280
260

Employee
-------5
8
5
8
11
5
5
11
8
5
5
8
5
11
11
5
8

Appendix D, Continued
Bottle Table
BottleID
-------1
2
4
5
6
7
8
9

Capacity
-------12
22
12
22
12
22
12
22

GlassColor
---------Blue
Blue
Clear
Clear
Brown
Brown
Green
Green

QOH
-----225
250
360
300
300
250
210
260

UsualCost
--------------------0.30
0.35
0.20
0.23
0.22
0.24
0.23
0.26

(8 row(s) affected)

64

VendorID
-------3
3
1
1
2
2
2
2

Appendix D, Continued
Brew Table
IngredientName
-----------------------------Belgain Malt
Belgain Malt
Belgain Malt
Belgain Malt
Black Barley
Blue Berries
Blue Berries
Blue Berries
Cascade Hops
Cascade Hops
German Pilsner Malt
German Pilsner Malt
Mt. Hood Hops
Mt. Hood Hops
Mt. Hood Hops
Mt. Hood Hops
Mt. Hood Hops
Mt. Hood Hops
Mt. Hood Hops
Mt. Hood Hops
Mt. Hood Hops
Mt. Hood Hops
Mt. Hood Hops
Mt. Hood Hops
Mt. Hood Hops
Mt. Hood Hops
Mt. Hood Hops
Mt. Hood Hops
Oats
Pumpkin
Rasberries
Rye Malt
Simcoe Hops
Victory Malt
Victory Malt
Victory Malt
Victory Malt
Wheat
White Wheat Malt
Yeast
Yeast
Yeast
Yeast
Yeast
Yeast
Yeast
Yeast
Yeast
Yeast
Yeast
Yeast
Yeast
Yeast
Yeast
Yeast
Yeast

BeerID
-----15
19
24
26
13
3
11
12
18
19
6
15
3
4
6
8
9
11
12
13
15
19
21
22
23
24
25
26
13
18
19
18
18
9
11
12
21
13
22
3
4
6
8
9
11
12
13
15
18
19
21
22
23
24
25
26

IngredientAmount
--------------------------------------200.00
500.00
500.00
500.00
300.00
200.00
100.00
200.00
100.00
1200.00
400.00
400.00
800.00
700.00
450.00
500.00
300.00
600.00
500.00
400.00
500.00
1000.00
1000.00
300.00
800.00
900.00
800.00
700.00
50.00
500.00
200.00
900.00
400.00
400.00
300.00
300.00
1000.00
150.00
500.00
600.00
300.00
600.00
200.00
300.00
500.00
200.00
300.00
400.00
200.00
200.00
500.00
300.00
400.00
300.00
300.00
300.00

(56 row(s) affected)

65

Appendix D, Continued
Company Table
CustomerID
----------1
2
3
6
7

CompanyName
-------------------------------------------------Total Beverage
Sunshine Distribution
Albertons
Strayer Beverage
Nelson Distribution

(5 row(s) affected)

66

TaxID
---------094528724
456298731
672919098
765342722
878762262

Appendix D, Continued
Crop Table
FieldName
----------UBC Cheney
UBC Cheney
UBC Cheney
UBC Cheney
UBC Cheney
UBC Prime
UBC Prime
UBC Prime
UBC Prime
UBC Prime
UBC Prime
UBC Prime
UBC Prime
UBC Prime
UBC Prime 2
UBC Prime 2
UBC Prime 2
UBC Prime 2
UBC Prime 2
UBC Valley
UBC Valley
UBC Valley
UBC Valley
UBC Valley
UBC Valley
UBC Valley

IngredientName
---------------------------Belgain Malt
Belgain Malt
Wheat
Wheat
White Wheat Malt
Blue Berries
Blue Berries
Blue Berries
Mt. Hood Hops
Mt. Hood Hops
Mt. Hood Hops
Oats
Pumpkin
Victory Malt
Cascade Hops
Pumpkin
Rasberries
Rasberries
Simcoe Hops
Black Barley
German Pilsner Malt
German Pilsner Malt
Rye Malt
Rye Malt
Victory Malt
Victory Malt

PlantingDate
-----------2011-06-13
2012-04-13
2011-04-15
2012-05-01
2012-03-01
2010-06-23
2011-05-10
2012-05-28
2010-02-10
2011-02-09
2012-02-02
2011-03-05
2011-05-01
2010-04-10
2012-03-10
2012-05-01
2011-05-13
2012-05-02
2012-02-13
2011-03-05
2010-03-10
2011-04-10
2011-05-01
2012-05-03
2011-04-12
2012-04-12

(26 row(s) affected)

67

CropSize
-----------1000.00
950.00
935.00
1030.00
600.00
300.00
250.00
320.00
5000.00
5300.00
4700.00
1000.00
500.00
1200.00
800.00
450.00
200.00
275.00
400.00
500.00
400.00
500.00
3200.00
NULL
1000.00
1250.00

HarvestingDate
-------------2011-09-05
2012-09-10
2011-09-12
2012-09-12
2012-07-01
2010-10-03
2011-10-07
2012-10-13
2010-08-09
2011-08-06
2012-08-07
2011-08-10
2011-09-26
2012-10-08
2012-07-02
2012-09-25
2011-10-06
2012-10-14
2012-06-15
2011-08-10
2010-08-04
2011-09-05
2011-11-06
NULL
2011-10-04
2012-10-04

Appendix D, Continued
Customer Table
CustomerID
----------1
2
3
4
5
6
7

Street
--------------------1218 N Industry Dr
11201 N Mckinley Dr
19201 Broadway Blvd
15621 N 62nd St
654 Provost Rd
465 Union Blvd
8576 Tyrion Dr

City
---------------------Spokane
Tampa
Golden
Spokane
Spokane
Baton Rouge
Denver

(7 row(s) affected)

68

State
----WA
FL
CO
WA
WA
LA
CO

Zip
----99201
33612
80401
99206
99612
70810
80401

PhoneNumber
-------------(504) 555-6812
(813) 555-4286
(303) 555-7875
(504) 555-1102
(504) 555-1345
(225) 555-6381
(303) 555-0606

CustomerType
-----------C
C
C
I
I
C
C

Appendix D, Continued
CustomerOrder Table
CustomerOrderID
--------------1
2
3
4
5
6
7
8
10
12
13
16
17
18
19
20
21
22

CustomerID
----------1
1
1
1
1
1
2
2
2
2
3
3
4
4
5
6
6
6

DateOrdered
----------2011-02-01
2011-03-25
2011-05-17
2012-06-18
2011-12-05
2012-08-19
2011-09-12
2012-01-20
2012-06-23
2012-09-13
2011-12-17
2012-06-20
2011-05-22
2011-12-16
2012-05-26
2012-08-14
2011-09-14
2012-09-26

DateShipped
----------2011-02-03
2011-03-29
2011-05-19
2012-06-20
2011-12-07
2012-08-23
2011-09-20
2012-01-22
2012-06-27
2012-09-16
2011-12-19
2012-06-25
2011-05-27
2011-12-19
2012-06-01
2012-08-17
2011-09-17
2012-10-02

(18 row(s) affected)

69

Appendix D, Continued
CustomerOrderLine Table
ProductID
--------7
8
10
15
16
17
18
19
20
23
24
24
25
26
26
27
28
32
32
34
35
36
37
38
41
42
42
42
43
44
45
46
47
48
55
56
56
57
57
58
58
58
59
59
59
60
60
60
60

CustomerOrderID
--------------1
1
1
2
2
2
2
2
2
7
7
21
7
7
21
8
8
10
16
10
22
22
3
3
5
5
13
18
4
4
4
4
3
17
4
4
19
6
20
6
12
20
6
20
22
6
12
20
22

QTYOrdered
---------20
20
20
25
20
10
20
10
20
20
20
30
20
20
30
30
30
20
40
20
30
30
20
20
30
20
26
3
15
15
20
20
20
4
10
20
2
20
20
20
30
30
30
20
20
30
30
30
20

QTYShipped
---------20
20
20
25
20
10
20
10
20
20
20
30
20
20
30
30
30
20
40
20
30
30
20
20
30
20
26
3
15
15
20
20
20
4
10
20
2
20
20
20
30
30
30
20
20
30
30
30
20

PricePerUnit
--------------------16.75
9.00
12.75
12.00
18.00
9.00
15.00
12.00
18.50
12.75
24.50
24.50
16.75
32.50
32.50
12.75
20.50
13.75
13.75
18.95
7.75
15.50
9.75
14.50
13.00
18.00
18.00
18.00
8.00
16.00
12.00
24.00
13.75
17.75
12.50
16.50
16.50
8.50
8.50
15.75
15.75
15.75
11.00
11.00
11.00
20.75
20.75
20.75
20.75

(49 row(s) affected)

70

Appendix D, Continued
Employee Table
EmployeeID FirstName LastName
PhoneNumber
SupervisorID
---------- --------- ---------------------- -----------2
John
Bauman
(509) 555-5454 NULL
3
Ally
Bauman
(509) 555-5454 NULL
4
Sam
Day
(509) 555-6534 2
5
Alice
Johson
(509) 555-2232 2
6
Max
Thompson
(509) 555-3909 4
7
Elizabeth Jones
(509) 555-3343 4
8
Thomas
Grant
(509) 555-4995 5
9
Mike
Langston
(509) 555-9834 4
10
Paul
Martin
(509) 555-7746 3
11
Brandon
Eaton
(509) 555-6564 5
12
Alice
Carlton
(509) 555-3333 10
13
Sally
Marlo
(504) 555-8889 10
14
John
Moralis
(504) 555-1111 5
15
Sally
Roland
(504) 555-3023 4
16
Robin
Thompson
(504) 555-8898 12
18
Lance
Rogers
(504) 555-0909 12
19
Matthew
Marks
(504) 555-7776 13
20
Lynn
Matthews
(504) 555-0090 13
22
Jose
Rodriguez
(504) 555-3394 4
23
John
Allen
(504) 555-6989 4
24
Mark
Mayor
(504) 555-7878 12
25
Alex
Daytona
(504) 555-1234 13

Position

Street

City

State Zip

----------------- -------------------- -------------- ----- ----Owner

11201 Anywhere St

Spokane

WA

99201

Owner

11201 Anywhere St

Spokane

WA

99201

Farm Supervisor

2203 Thompson Ave

Cheney

WA

99004

Senior Brewmaster 963 Summit Drive

Spokane

WA

99224

Farmer

223 Alto Ave

Spokane

WA

99217

Farmer

33454 Mckinley Dr

Reardan

WA

99224

Brewmaster

99 Lincoln Loop Rd

Spokane

WA

99201

Farmer

574 Raymond Dr

Spokane

WA

99202

Clerk Supervisor

203 Baymont St

Spokane

WA

99206

Brewmaster

6759 Broken Arrow Ln Spokane

WA

99612

Senior Clerk

56 Triton Ave

Spokane Valley WA

99615

Senior Clerk

712 E Broadway St

Cheney

WA

99004

Brewmaster

76 W Hampton Dr

Spokane

WA

99612

Farmer

34 Highlands Way

Spokane

WA

99206

Clerk

1123 Smith Rd

Spokane

WA

99614

Clerk

77 Makon Blvd

Spokane

WA

99204

Clerk

8987 East Lake Dr

Spokane

WA

99217

Clerk

454 Market Ln.

Spokane

WA

99201

Farmer

123 Lakeview Dr

Spokane

WA

99204

Farmer

674 Laurel St

Spokane

WA

99201

Clerk

23

Spokane

WA

99206

Clerk

11 W Simpson Dr

Spokane

WA

99612

(22 row(s) affected)

71

Lancaster St

Appendix D, Continued
Field Table
FieldName
-------------------UBC Cheney
UBC Prime
UBC Prime 2
UBC Valley

Size
--------------------------------------30.00
24.00
48.00
32.00

(4 row(s) affected)

72

SoilType
--------------Sandy Loam
Sandy Loam
Sandy Loam
Loam

EmployeeID
---------7
22
15
4

Appendix D, Continued
Individual Table
CustomerID
----------4
5

FirstName
--------------John
Tammie

LastName
-------------------Smith
Thompson

DateOfBirth
----------1975-02-13
1963-09-22

(2 row(s) affected)

73

Appendix D, Continued
Ingredient Table
IngredientName
-----------------------------Belgain Malt
Black Barley
Blue Berries
Cascade Hops
German Pilsner Malt
Mt. Hood Hops
Oatmeal
Oats
Pumpkin
Rasberries
Rye Malt
Simcoe Hops
Victory Malt
Wheat
White Wheat Malt
Yeast

QOH
--------------------------------------NULL
NULL
10.00
26.00
60.00
200.00
NULL
NULL
100.00
NULL
30.00
NULL
120.00
5.00
10.00
100.00

(16 row(s) affected)

74

Appendix D, Continued
Product Table
ProductID
--------7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
51
53
54
55
56
57
58
59
60

BeerID
-----3
3
3
3
4
4
4
4
6
6
8
8
8
8
9
9
11
11
11
11
12
12
13
13
15
15
15
15
18
18
19
19
19
19
21
21
22
22
22
22
23
23
24
24
24
24
25
25
26
26
26
26

BottleID
-------6
6
7
7
8
8
9
9
6
7
8
8
9
9
6
6
6
6
7
7
6
7
6
7
6
6
7
7
6
7
1
2
1
2
1
2
1
1
2
2
4
5
4
4
5
5
4
5
4
4
5
5

CaseQTY
------24
12
24
12
6
12
6
12
12
12
6
12
6
12
12
12
12
24
12
24
12
12
12
12
6
12
6
12
12
12
12
12
24
24
12
12
6
12
6
12
12
12
6
12
6
12
12
12
6
12
6
12

BottlingDate
-----------2011-01-26
2011-01-27
2011-02-01
2012-02-03
2011-01-14
2011-01-16
2011-01-17
2011-01-20
2011-03-16
2011-03-17
2011-02-18
2011-02-19
2011-02-20
2011-02-21
2011-07-13
2011-07-14
2011-09-17
2011-09-18
2011-09-19
2011-09-19
2012-01-14
2012-01-15
2012-03-18
2012-03-15
2012-06-04
2012-06-05
2012-06-08
2012-06-08
2012-09-15
2012-09-16
2011-05-17
2011-05-16
2011-05-17
2011-05-16
2011-12-01
2011-12-02
2012-05-08
2012-05-08
2012-05-09
2012-05-09
2011-04-16
2011-04-17
2011-08-03
2011-08-03
2011-08-05
2011-08-05
2012-05-16
2012-05-17
2012-08-12
2012-08-12
2012-08-13
2012-08-13

Price
--------------------16.75
9.00
21.50
12.75
8.00
16.00
13.00
19.00
12.00
18.00
9.00
15.00
12.00
18.50
16.75
22.50
12.75
24.50
16.75
32.50
12.75
20.50
11.50
16.75
9.50
13.75
12.75
18.95
7.75
15.50
9.75
14.50
18.00
26.00
13.00
18.00
8.00
16.00
12.00
24.00
13.75
17.75
7.50
14.00
10.00
19.75
12.50
16.50
8.50
15.75
11.00
20.75

(52 row(s) affected)

75

Appendix D, Continued
Vendor Table
VendorID CompanyName
Street
ContactFirstName ContactLastName
-------- ---------------- ---------------------------------- -------------------1
All Glass
2205 Glass St
John
Thomas
2
Glassworks
11201 N Mckinley Dr
Martin
Koss
3
Bottle Arts Inc. 998 W Clinton Dr
Mary
Martin

City

State Zip

PhoneNumber

--------- ----- ----- -------------Las Vegas NV

89015 (702) 555-6889

Tampa

FL

33612 (813) 555-9904

Spokane

WA

99206 (504) 555-5432

(3 row(s) affected)

76

Appendix D, Continued
VendorOrder Table
VendorOrderID
------------2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
23
24

DatePlaced
---------2011-01-10
2011-02-09
2011-03-09
2011-04-16
2011-07-05
2011-09-01
2011-10-08
2012-01-02
2012-03-07
2012-04-03
2012-06-20
2012-09-01
2012-10-01
2011-05-02
2011-06-01
2011-12-02
2012-05-02
2012-06-02
2011-04-05
2011-08-01
2012-05-10
2012-08-03

DateReceived
-----------2011-01-14
2011-02-15
2011-03-15
2011-04-20
2011-07-13
2011-09-05
2011-10-12
2012-01-05
2012-03-15
2012-04-06
2012-06-26
2012-09-04
2012-10-03
2011-05-04
2011-06-04
2011-12-04
2012-05-04
2012-06-08
2011-04-08
2011-08-06
2012-05-16
2012-08-07

VendorID
-------2
2
2
2
2
2
2
2
2
2
2
2
2
3
3
3
3
3
1
1
1
1

(22 row(s) affected)

77

Appendix D, Continued
VendorOrderLine Table
BottleID
-------1
1
1
1
1
2
2
2
2
2
4
4
4
4
5
5
5
5
6
6
6
6
6
6
6
6
6
6
6
6
6
7
7
7
7
7
7
7
7
7
7
7
7
7
8
8
8
8
8
9
9
9
9

VendorOrderID
------------15
16
17
18
19
15
16
17
18
19
20
21
23
24
20
21
23
24
2
3
4
5
6
7
8
9
10
11
12
13
14
2
3
4
5
6
7
8
9
10
11
12
13
14
2
4
5
10
11
2
4
5
10

QTYOrdered
----------2000
1500
2600
600
1000
2000
1500
2600
800
1000
900
900
600
600
1200
1200
600
600
1000
1000
1000
600
800
2000
2000
1000
1000
600
1000
2000
2000
1000
1000
1000
600
800
2000
2000
1000
1000
800
1000
2000
2000
500
500
500
500
600
500
500
500
500

QTYShipped
----------2000
1500
2600
600
1000
2000
1500
2600
800
1000
900
900
600
600
1200
1200
600
600
1000
1000
1000
600
800
2000
2000
1000
1000
600
1000
2000
2000
1000
1000
1000
600
800
2000
2000
1000
1000
800
1000
2000
2000
500
500
400
500
600
500
500
400
500

CostPerBottle
--------------------0.30
0.30
0.30
0.30
0.30
0.35
0.35
0.35
0.35
0.35
0.20
0.20
0.20
0.20
0.23
0.23
0.23
0.23
0.22
0.22
0.22
0.22
0.22
0.20
0.20
0.22
0.22
0.22
0.22
0.20
0.20
0.24
0.24
0.24
0.24
0.24
0.22
0.22
0.24
0.24
0.24
0.24
0.22
0.22
0.23
0.23
0.23
0.23
0.23
0.26
0.26
0.26
0.26

(53 row(s) affected)

78