finaldocumentsunshine_winery

50
ISM 4212-001 SUNSHINE WINERY DATABASE DOCUMENTATION Austin Baragar, Jack Gebhart, Jacob Hyppolite, Ryan Price, Peter Sheridan Fall 15

Upload: jacob-hyppolite-ii

Post on 13-Apr-2017

181 views

Category:

Documents


3 download

TRANSCRIPT

Page 1: FinalDocumentSunshine_Winery

I S M 4 2 1 2 - 0 0 1

SUNSHINE WINERY DATABASE

DOCUMENTATION Austin Baragar, Jack Gebhart, Jacob Hyppolite, Ryan

Price, Peter Sheridan

Fall 15

Page 2: FinalDocumentSunshine_Winery

2 SUNSHINE WINERY DATABASE DOCUMENTATION

Table of Contents

OVERVIEW ............................................................................................................................ 4

INTRO TO SQL SERVER ........................................................................................................... 4 Software Recommendation ............................................................................................................4 About Microsoft SQL Server ............................................................................................................4

HOW TO ACCESS THE DATABASE ........................................................................................... 5 STEP 1 ............................................................................................................................................5 STEP 2 ............................................................................................................................................6 STEP 3 ............................................................................................................................................7 STEP 4 ............................................................................................................................................7 STEP 5 ............................................................................................................................................8

REPORTS AND VIEWS ............................................................................................................ 9

Views .................................................................................................................................... 9 HOW TO ACCESS THE VIEWS ...........................................................................................................9

STEP 1 .................................................................................................................................................... 9 STEP 2 .................................................................................................................................................... 9

VIEW 1 ......................................................................................................................................... 10 VIEW 2 ......................................................................................................................................... 11 VIEW 3 ......................................................................................................................................... 11 VIEW 4 ......................................................................................................................................... 12 VIEW 5 ......................................................................................................................................... 12

Reports ............................................................................................................................... 13 HOW TO ACCESS THE REPORTS ..................................................................................................... 13

STEP 1 .................................................................................................................................................. 13 STEP 3 .................................................................................................................................................. 13 STEP 3 .................................................................................................................................................. 14 STEP 4 .................................................................................................................................................. 15 STEP 5 .................................................................................................................................................. 15

REPORT 1 ..................................................................................................................................... 16 REPORT 2 ..................................................................................................................................... 17 REPORT 3 ..................................................................................................................................... 18 REPORT 4 ..................................................................................................................................... 19 REPORT 5 ..................................................................................................................................... 20

Appendixes ......................................................................................................................... 21 Appendix A .................................................................................................................................. 22

Entity Relationship Diagram................................................................................................................ 22 Relational Schema ............................................................................................................................... 23 Data Dictionary ................................................................................................................................... 24

Page 3: FinalDocumentSunshine_Winery

SUNSHINE WINERY DATABASE DOCUMENTATION 3

APPENDIX B ................................................................................................................................. 31 SQL SERVER DATABASE DIAGRAM ...................................................................................................... 31

APPENDIX C ................................................................................................................................. 32 REPORT 1 ............................................................................................................................................. 32 REPORT 2 ............................................................................................................................................. 32 REPORT 3 ............................................................................................................................................. 32 REPORT 4 ............................................................................................................................................. 35 REPORT 5 ............................................................................................................................................. 36

APPENDIX D ................................................................................................................................. 39 Bottle TABLE ........................................................................................................................................ 39 Company TABLE .................................................................................................................................. 40 Customer TABLE .................................................................................................................................. 41 Customer Order TABLE ....................................................................................................................... 42 Customer Order Line TABLE ................................................................................................................ 43 Employee TABLE.................................................................................................................................. 44 Grape TABLE ........................................................................................................................................ 45 Grape Percentage TABLE .................................................................................................................... 45 Harvest TABLE ..................................................................................................................................... 46 Individual TABLE .................................................................................................................................. 46 Product TABLE ..................................................................................................................................... 47 Soil Type TABLE ................................................................................................................................... 48 Vendor TABLE ...................................................................................................................................... 48 Vendor Order TABLE ........................................................................................................................... 48 Vendor Order Line TABLE .................................................................................................................... 49 Vineyard TABLE ................................................................................................................................... 49 Wine TABLE ......................................................................................................................................... 50

Page 4: FinalDocumentSunshine_Winery

4 SUNSHINE WINERY DATABASE DOCUMENTATION

OVERVIEW Sunshine Winery is a fast growing business, and its record keeping needs are accelerating accordingly.

To keep up with this pace, Sunshine Winery will need a system to maintain operational . To best suit the

scaling needs of the organization, Microsoft SQL Server was selected as the DBMS. More about the tool

follows this overview. Also included in this report is documentation on how to use SQL Server to yield

maximum value, example reports that could be run at regular intervals, example views that will provide

a quick overview of key database columns, and appendixes with additional database information.

INTRO TO SQL SERVER

Software Recommendation Sunshine Winery has grown to the point that managing its data in its current form has become

cumbersome and tedious. A DBMS will increase efficiency and prepare for managing future growth. The

owners of the winery acknowledged the need for a better system than their current method because of

the growing pains associated with more business. To create a scalable transactional database and meet

business objectives, Microsoft SQL Server was selected as the database tool best suited to handle

Sunshine Winery’s more advanced record keeping needs. About Microsoft SQL Server Microsoft SQL Server is a “Leader” in the Gartner Magic Quadrant for DBMS. It has a long history of

success for clients in multiple industries, and is noted for its ability to scale. Basic database features such

as “SELECT”, “INSERT”, “CREATE”, and “DROP” are all present in SQL Server, but it has extended

functionality to generate easy to design tabular or matrix reports by using Visual Studio. Also included

with SQL Server is Management Studio (the graphical user interface (GUI)). Management studio has

powerful features to ensure data security and ease of use. Technical stakeholders will find SQL Server

sufficient for data governance and management; business stakeholders will find SQL Server capable of

delivering critical reports to discover insights. SQL Server is a database tool capable of handling any data,

and promises great value with proper implementation.

Page 5: FinalDocumentSunshine_Winery

SUNSHINE WINERY DATABASE DOCUMENTATION 5

HOW TO ACCESS THE DATABASE

STEP 1 Locate and open the SQL Server Management

Studio.

This can be either a desktop icon or an item in the

start menu. (Start menu shown here)

Page 6: FinalDocumentSunshine_Winery

6 SUNSHINE WINERY DATABASE DOCUMENTATION

STEP 2 Users will be prompted with the below window.

Select the appropriate server name.

Then select “Connect”.

Page 7: FinalDocumentSunshine_Winery

SUNSHINE WINERY DATABASE DOCUMENTATION 7

STEP 3 The SQL Server Management Studio should now be

open and you should see “Sunshine Winery” under the

“Databases” expanded tree in the “Object Explorer”.

Expand the tree for the Sunshine Winery database by

clicking the one to the left of the database.

STEP 4 After you expand the “Sunshine Winery” tree, you will

see a list of other trees.

Expand the tree named “Tables”

Page 8: FinalDocumentSunshine_Winery

8 SUNSHINE WINERY DATABASE DOCUMENTATION

STEP 5 After expanding the “Tables” tree you can now see the list of the tables that make up your

database.

To review or modify a table without using the SQL command line interface, right click on the

desired table and then select “Edit Top 200 Rows”.

Page 9: FinalDocumentSunshine_Winery

SUNSHINE WINERY DATABASE DOCUMENTATION 9

REPORTS AND VIEWS

Views

HOW TO ACCESS THE VIEWS

STEP 1

Open “Object Explorer”.

Double click “Views”.

STEP 2

Double click on desired View to

open it.

Page 10: FinalDocumentSunshine_Winery

10 SUNSHINE WINERY DATABASE DOCUMENTATION

VIEW 1 This view shows which kinds of bottles Sunshine Winery orders from a particular vendor.

Page 11: FinalDocumentSunshine_Winery

SUNSHINE WINERY DATABASE DOCUMENTATION 11

VIEW 2 This view shows the Glass Color, Bottle Capacity, and the number of bottles left for each type.

Useful for a quick bottle inventory check.

VIEW 3 This view shows a particular customer order, and the slack between order and delivery. Useful

for determining logistical efficiency.

Page 12: FinalDocumentSunshine_Winery

12 SUNSHINE WINERY DATABASE DOCUMENTATION

VIEW 4 This view shows the discounts Sunshine Winery is giving customers on orders. This will be useful

to query later, and develop a break down of how discounts are distributed.

VIEW 5 This view shows employee assignments to various vineyards. This will be useful to query later to

determine how to better assign employees.

Page 13: FinalDocumentSunshine_Winery

SUNSHINE WINERY DATABASE DOCUMENTATION 13

Reports

HOW TO ACCESS THE REPORTS

STEP 1

Start up SQL Server Data Tools.

It will a desktop icon or in the start menu list of programs.

STEP 2

Once in Data Tools click on File

Then hover over Open

Finally, click on Project/Solution

This can be accomplished with the keyboard shortcut “Ctrl+Shift+O”

Page 14: FinalDocumentSunshine_Winery

14 SUNSHINE WINERY DATABASE DOCUMENTATION

STEP 3

Select the appropriate project (in this case Sunshine Winery).

Then click Open.

Page 15: FinalDocumentSunshine_Winery

SUNSHINE WINERY DATABASE DOCUMENTATION 15

STEP 4

Look at the Solution Explorer

Right click on the desired report.

Click open.

STEP 5

Your report is now visible, and may be viewed or edited from here.

Page 16: FinalDocumentSunshine_Winery

16 SUNSHINE WINERY DATABASE DOCUMENTATION

REPORT 1 Efficiency is critical for any supply chain. A winery is no different. This report shows how much each

grape produces on each vineyard. This data will allow management to understand how each grape

performs year to year in each vineyard. A best vineyard for each grape can be chosen, and if yield begins

to drop off, management will know to rotate crops next season.

Page 17: FinalDocumentSunshine_Winery

SUNSHINE WINERY DATABASE DOCUMENTATION 17

REPORT 2 This is another efficiency report designed to give management more insight into how certain grapes are

performing in a particular vineyard. Sugar content is the metric of interest in this report. Grapes can be

benchmarked against industry and winery averages for sugar content. This will allow management to

select the best field for each grape in any given year.

Page 18: FinalDocumentSunshine_Winery

18 SUNSHINE WINERY DATABASE DOCUMENTATION

REPORT 3 Just-In-Time logistics is the standard for supply chain. A winery’s operations are no exception. This

report will help with bottle ordering by seeing which bottles Sunshine Winery orders from which

vendors. This will also give management an idea of how much business is done with each vendor.

Page 19: FinalDocumentSunshine_Winery

SUNSHINE WINERY DATABASE DOCUMENTATION 19

REPORT 4 Understanding what customers want is critical to growing business. There is a great need to tailor

promotional offers to a specific customer based on what wines they like to drink. From this report we

can see how long they’ve been a customer with us and give promotions based on longevity of the

account and how much of what kind of wine they have purchased from us in the past.

Page 20: FinalDocumentSunshine_Winery

20 SUNSHINE WINERY DATABASE DOCUMENTATION

REPORT 5 How is business? This is a common question posed, and this reports answers it. It contains a breakdown

of the turnover on all the wine Sunshine Winery sells for all time. This is another useful report to

determine which wines are the stars of the company. Additionally, a grand total is included so

management can see how much it has made over the years.

Page 21: FinalDocumentSunshine_Winery

SUNSHINE WINERY DATABASE DOCUMENTATION 21

Appendixes

Page 22: FinalDocumentSunshine_Winery

22 SUNSHINE WINERY DATABASE DOCUMENTATION

Appendix A Appendix A contains the logical and physical diagrams for the database; as well as the data dictionary.

Entity Relationship Diagram

Page 23: FinalDocumentSunshine_Winery

SUNSHINE WINERY DATABASE DOCUMENTATION 23

Relational Schema

Page 24: FinalDocumentSunshine_Winery

24 SUNSHINE WINERY DATABASE DOCUMENTATION

Data Dictionary

Table: Bottle

Column Name Description Date

Type Size Identity Unique Default Check

Allow

Nulls Index

BottleID

PK; Unique

Sequential

Bottle ID

tinyint Y

Capacity

Bottle

Volume

Capacity in

Milliliters

smallint 375 OR 750 OR

1500

GlassColor Bottle glass

color char 5

‘Green’ OR

‘Brown’ OR

‘Clear’

Shape Bottle Shape varchar 16

‘High

Shouldered’ OR

‘Slope

Shouldered’ OR

‘Tall Slender’

QuantityOnHand

Quantity of

bottles on

hand

int >=0

UsualCost

Expected

Vendor Unit

Charge for

Bottle Type

smallmon

ey >=0.00

Table: Company

Column Name Description Date

Type Size Identity Unique Default Check

Allow

Nulls Index

CustomerID

FK to Customer

Table; Company

Customer Identity

int Y

CompanyName Customer company

name varchar 30 Y

TaxIdentificationNumber

Company Tax

Identification

number

char 10 Y

LIKE

'[0-9][0-

9]-[0-9]

[0-9][0-

9][0-9]-

[0-9][0-

9][0-9]

Y

Page 25: FinalDocumentSunshine_Winery

SUNSHINE WINERY DATABASE DOCUMENTATION 25

Table: Customer

Column Name Description Date

Type Size Identity Unique Default Check

Allow

Nulls Index

CustomerID

PK. Unique

Sequential

Customer ID

int Y Y

Street Street name

of customer varchar 30

City City of

customer varchar 25

State State of

customer char 2

LIKE ‘[A-

Z][A-Z]’

Zip Zip code of

customer char 5

LIKE '[0-9][0-

9] [0-9][0-

9][0-9]'

CustomerType

Specifies

Customer

Type C =

Company, I

= Individual

char 1 ‘C’ ‘C’ OR ‘I’

Phone

Phone

Number of

Customer

char 14

LIKE '([0-9][0-

9][0-9]) [0-

9][0-9][0-9]-

[0-9][0-9][0-

9][0-9]

Table: CustomerOrder

Column Name Description Date

Type Size Identity Unique Default Check

Allow

Nulls Index

CustomerOrderNo

PK. Unique

Sequantial

Order No

int Y Y

CustomerID FK to Customer

Table int Y

OrderDate Date product

was ordered date GETDATE() <=GETDATE()

ShipmentDate Date Order was

Shipped date >=OrderDate Y

Page 26: FinalDocumentSunshine_Winery

26 SUNSHINE WINERY DATABASE DOCUMENTATION

Table: CustomerOrderLine

Column Name Description Date

Type Size Identity Unique Default Check

Allow

Nulls Index

CustomerOrderNo

CPK.FK. to

Customer

Order Table

int Y

ProductID

CPK.FK. to

Product

Table

smallint Y

QuantityOrdered

Amount of a

Product that

was Ordered

smallint >0

QuantityShipped

Amount of a

Product that

was Shipped

smallint

>=0 AND

<=QuantiyOr

dered

Y

ActualPrice

Actual Unit

Price

Charged for

Product,

Each

smallmon

ey >=0.00

Table: Employee

Column

Name Description

Date

Type Size Identity Unique Default Check

Allow

Nulls Index

EmployeeID

PK. Unique Sequential

Number Generated for

Each Employee.

smallint Y Y

FirstName First Name of

Employee varchar 15

LastName Last Name of

Employee varchar 20 Y

Street Street Name varchar 30

City Name of City varchar 25

State Name of State char 2 ‘CA’ LIKE ‘[A-

Z][A-Z]’

Zip Postal Zip Code char 5

LIKE '[0-9][0-

9] [0-9][0-9][0-

9]'

Position Position at Vineyard varchar 20

Phone Phone Number char 14

LIKE '([0-9][0-

9] [0-9]) [0-

9][0-9] [0-9]-

[0-9][0-9] [0-

9][0-9]'

Y

SupervisorID

Recursive FK.

Synonym for

EmployeeID

Smallint Y

Page 27: FinalDocumentSunshine_Winery

SUNSHINE WINERY DATABASE DOCUMENTATION 27

Table: Grape

Column Name Description Date

Type Size Identity Unique Default Check

Allow

Nulls Index

GrapeName PK. Unique Name of

Grape Type varchar 20 Y

StorageContainer Container Type

Grapes are Stored in varchar 15

‘Stainless

Steel’ OR

‘Oak’

AgingRequirement Aging Requirement in

Days smallint >=0

Table: GrapePrecentage

Column Name Description Date

Type Size Identity Unique Default Check

Allow

Nulls Index

GrapeName CPK, FK to

Grape Table varchar 20 Y

WineID CPK, FK to Wine

Table smallint Y

GrapePercentage Percentage of

Grape in the Wine decimal (4,3)

>0.000 AND

<=1.000

Table: Harvest

Column

Name Description

Date

Type Size Identity Unique Default Check

Allow

Nulls Index

GrapeName FK; to Grape

Name varchar 20 Y

VineyardName

CPK; FK; to

Vineyard table;

vineyard where

grapes are grown

varchar 20 Y

Vintage CPK; FK Year

Grape Harvested smallint >=2011 Y

JuiceYield

Juice Yield of

Grape per Harvest

(In Liters)

int >=0 Y

SugarContent Grape Sugar

Content (%) decimal (3,3)

>= .000 AND

<=.500 Y

Table: Individual

Column

Name Description

Date

Type Size Identity Unique Default Check

Allow

Nulls Index

CustomerID

FK to Customer Table;

Individual Customer

Identity

int Y

FirstName Customer First Name varchar 15

LastName Customer Last Name varchar 20 Y

DateOfBirth Customer Date of Birth date <=GETDATE ()

– 21*365.25

Page 28: FinalDocumentSunshine_Winery

28 SUNSHINE WINERY DATABASE DOCUMENTATION

Table: Product

Column

Name Description Date Type Size Identity Unique Default Check

Allow

Nulls Index

ProductID

PK. Unique

Sequential ID for Each

Product

smallint Y Y

CaseQuantity Number of Bottles in a

Case of Product tinyint

>0 AND

<=24

ListPrice Price of the Product smallmoney >=0.00

BottleID FK to Bottle Table tinyint

WineID FK to Wine Table smallint

Table: SoilType

Column

Name Description

Date

Type Size Identity Unique Default Check

Allow

Nulls Index

VineyardName CPK. FK. to Vineyard

Table varchar 20 Y

SoilType CPK. Kind of Soil in

Vineyard varchar 20 Y

Table: Vendor

Column Name Description Date

Type Size Identity Unique Default Check

Allow

Nulls Index

VendorID

PK; Uniquely

Sequentially Identifies

a Vendor

tinyint Y Y

CompanyName A Company’s Name varchar 30 Y

Street Street Number and

Name of Vendor varchar 30

City Name of Vendor’s City varchar 25

State Name of Vendor’s

State char 2

LIKE ‘[A-

Z][A-Z]’

Zip Vendor’s Zip Code char 5

LIKE '[0-9][0-

9] [0-9][0-

9][0-9]'

Phone Vendor’s Office Phone

Number char 14 Y

LIKE '([0-

9][0-9][0-9])

[0-9][0-9][0-

9]-[0-9][0-

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

Y

Page 29: FinalDocumentSunshine_Winery

SUNSHINE WINERY DATABASE DOCUMENTATION 29

Table: VendorOrder

Column Name Description Date

Type Size Identity Unique Default Check

Allow

Nulls Index

VendorOrderNo

PK; VendorOrder

uniquely ID’s

orders

int Y Y

DateOrdered

Date in

which the

order was

made

date GETDATE() <=GETDATE()

DateReceived

Date which a

Particular

Ordered was

Received

date <=DateOrdered Y

VendorID FK; To

Vendor Table tinyint Y

Table: VendorOrderLine

Column Name Description Date Type Size Identity Unique Default Check Allow

Nulls Index

BottleID CPK; FK; to

Bottle Table tinyint

VendorOrderNo

CPK; FK; to

VendorOrder

Table

int Y

QuantityOrdered

Number of a

specific bottle

ordered

int >0

QuantityReceived

Number of

specific

bottles

received from

the order

int

>=0 AND

<=Quantit

yOrdered

Y

ActualCost

Actual Unit

Cost Charged

for Bottle

smallmoney >=0.00

Table: Vineyard

Column

Name Description

Date

Type Size Identity Unique Default Check

Allow

Nulls Index

VineyardName PK. Name of the

Vineyard varchar 20 Y

EmployeeID FK. Foreign key to

Employee Table smallint Y Y

Size Size of Vineyard in

Acres decimal (4,2) >0.00

Page 30: FinalDocumentSunshine_Winery

30 SUNSHINE WINERY DATABASE DOCUMENTATION

Table: Wine

Column Name Description Date

Type Size Identity Unique Default Check

Allow

Nulls Index

WineID

PK. Unique

Sequential ID for

Each Wine

smallint Y Y

Name Name of the Wine varchar 40 Y

Vintage Year the Wine was

Made smallint >=2011

Category Type of Wine varchar 5 ‘Red’ OR ‘White’

OR ‘Rose’

PercentAlcohol Percent Alcohol in

the Wine in Liters decimal (3,3)

>=.000 AND

<=.250 Y

TotalVolume Amount of Wine

Made int >=0 Y

WineMakerID

FK to Employee

Table; Synonym

for Employee ID;

Wine Maker

smallint

Page 31: FinalDocumentSunshine_Winery

SUNSHINE WINERY DATABASE DOCUMENTATION 31

APPENDIX B Appendix B contains the SQL Server generated database diagram. It is essentially a confirmation of the

model by showing the relationships between the various tables.

SQL SERVER DATABASE DIAGRAM

Bottle

BottleID

Capacity

GlassColor

Shape

QuantityOnHand

UsualCost

Company

CustomerID

CompanyName

TaxIdentificationNumber

Customer

CustomerID

Street

City

State

Zip

CustomerType

Phone

CustomerOrder

CustomerOrderNo

CustomerID

OrderDate

ShipmentDate

CustomerOrderLine

CustomerOrderNo

ProductID

QuantityOrdered

QuantityShipped

ActualPrice

Employee

EmployeeID

FirstName

LastName

Street

City

State

Zip

Position

Phone

SupervisorID

Grape

GrapeName

StorageContainer

AgingRequirement

GrapePercentage

GrapeName

WineID

GrapePercentage

Harvest

GrapeName

VineyardName

Vintage

JuiceYield

SugarContent

Individual

CustomerID

FirstName

LastName

DateOfBirth

Product

ProductID

CaseQuantity

ListPrice

BottleID

WineID

SoilType

VineyardName

SoilType

Vendor

VendorID

CompanyName

Street

City

State

Zip

Phone

VendorOrder

VendorOrderNo

DateOrdered

DateReceived

VendorID

VendorOrderLine

BottleID

VendorOrderNo

QuantityOrdered

QuantityReceived

ActualCost

Vineyard

VineyardName

EmployeeID

Size

Wine

WineID

Name

Vintage

Category

PercentAlcohol

TotalVolume

WineMakerID

Page 32: FinalDocumentSunshine_Winery

32 SUNSHINE WINERY DATABASE DOCUMENTATION

APPENDIX C Appendix C contains full versions of the reports shown earlier and the test data used for the examples.

REPORT 1

REPORT 2

Page 1 of 1

Page 1 of 1

Page 33: FinalDocumentSunshine_Winery

SUNSHINE WINERY DATABASE DOCUMENTATION 33

REPORT 3

Page 34: FinalDocumentSunshine_Winery

34 SUNSHINE WINERY DATABASE DOCUMENTATION

Page 35: FinalDocumentSunshine_Winery

SUNSHINE WINERY DATABASE DOCUMENTATION 35

REPORT 4

Page 1 of 2

Page 36: FinalDocumentSunshine_Winery

36 SUNSHINE WINERY DATABASE DOCUMENTATION

Page 2 of 2

Page 37: FinalDocumentSunshine_Winery

SUNSHINE WINERY DATABASE DOCUMENTATION 37

REPORT 5

Page 1 of 2

Page 38: FinalDocumentSunshine_Winery

38 SUNSHINE WINERY DATABASE DOCUMENTATION

Page 2 of 2

Page 39: FinalDocumentSunshine_Winery

APPENDIX D Appendix D is a collection of all the sample data used to fill the tables of the Sunshine Winery database.

Bottle TABLE Bottle

BottleID Capacity GlassColor Shape QuantityOnHand UsualCost -------- -------- ---------- ---------------- -------------- --------------------- 1 375 Green High Shouldered 14 3.50 2 375 Green Slope Shouldered 15 3.50 3 375 Green Tall Slender 16 3.50 4 375 Brown High Shouldered 15 3.50 5 375 Brown Slope Shouldered 15 3.50 6 375 Brown Tall Slender 16 3.50 7 375 Clear High Shouldered 17 3.50 8 375 Clear Slope Shouldered 15 3.50 9 375 Clear Slope Shouldered 16 3.50 10 750 Green High Shouldered 15 3.50 11 750 Green Slope Shouldered 18 4.25 12 750 Green Tall Slender 17 4.25 13 750 Brown High Shouldered 16 4.25 14 750 Brown Slope Shouldered 15 4.25 15 750 Brown Tall Slender 16 4.25 16 750 Clear High Shouldered 15 4.25 17 750 Clear Slope Shouldered 16 4.25 18 750 Clear Tall Slender 15 4.25 19 1500 Green High Shouldered 16 5.50 20 1500 Green Slope Shouldered 15 5.50 21 1500 Green Tall Slender 16 5.50 22 1500 Brown High Shouldered 15 5.50 23 1500 Brown Slope Shouldered 17 5.50 24 1500 Brown Tall Slender 16 5.50 25 1500 Clear High Shouldered 17 5.50 26 1500 Clear Slope Shouldered 16 5.50 27 1500 Clear Tall Slender 15 5.50 (27 row(s) affected)

Page 40: FinalDocumentSunshine_Winery

40 SUNSHINE WINERY DATABASE DOCUMENTATION

Company TABLE

Company

CustomerID CompanyName TaxIdentificationNumber ----------- ------------------------------ ----------------------- 1 ABC Fine Wines 12-1234-123 2 Mike Liquor Store 12-2356-456 3 Beer & Wine Palace 15-4565-487 4 Beer Cave 17-9874-568 5 Man Cave Liquors 45-7899-254 6 41 St Liquor 87-5874-852 7 Tampa Fine Wines 97-8524-987 8 St Pete Wine Shoppe 45-9874-321 9 Wine World 98-9874-987 10 Winos Workshop 85-2588-365 11 HouseWife Heaven 12-3698-742 12 Courgar Town Wine Supply 74-9874-544 13 Worlds Wine 54-8996-887 14 Kennedy Blvd Liquors 87-8524-854 22 World Of Beer 58-9854-663 27 The Liquor Store 21-2514-654 30 The Wine Cave 25-6356-987 35 Hubert Wines 65-6985-214 40 Wine and Spirits 25-9854-142 46 Arlington Wine and Liquor 21-5486-254 48 Artisan Wine Depot 53-5847-652 50 Bella Vino Wine Market 21-6564-544 54 Bedford Wine Merchants 56-6548-685 (23 row(s) affected)

Page 41: FinalDocumentSunshine_Winery

SUNSHINE WINERY DATABASE DOCUMENTATION 41

Customer TABLE

Customer

CustomerID Street City State Zip CustomerType Phone ----------- ------------------------------ ------------------------- ----- ----- ------------ ------------- 1 2 Rieder Lane Lubbock TX 79452 C (898)743-9534 2 10 Stuart Hill Colorado Springs CO 80930 C (373)342-4567 3 9877 Lunder Road Dallas TX 75287 C (435)492-8467 4 76 Clove Trail Philadeplphia PA 19125 C (365)453-5257 5 694 Farmco Court Racine WI 53405 C (732)432-6893 6 8150 Carberry Park Topeka KS 66606 C (462)421-5068 7 788 Rutledge Alley Weston VA 22096 C (472)424-9876 8 80 Hagan Plaza Baltimore MD 21239 C (432)685-4598 9 92 Monterey Ave Chicago IL 32098 C (633)752-9636 10 76 Kim Junction Las Vegas NV 56984 C (463)374-8630 11 5202 Anzinger Lane Killeen TX 76544 C (733)382-9765 12 8136 Vahlen Park El Paso TX 79928 C (457)963-0843 13 749 Mcbride Terrace Phoeniz AZ 78634 C (212)873-9477 14 4607 Havey Pass Oxnard CA 98032 C (736)836-8684 15 759 Merchant Point Bradenton FL 33458 I (483)542-9756 16 52 Bobwhite Drive Tyler TX 54876 I (746)355-0762 17 80128 Pankratz Alley SpringField IL 34921 I (740)847-8364 18 8 Center Plaza Bradenton FL 33458 I (757)854-3789 19 6 Bluestem Trail Washington DC 23454 I (755)865-9764 20 47890 Sutherland Street Houston TX 48932 I (758)859-8632 21 342 Summit Street Cincinatti OH 45875 I (824)863-8563 22 27 Forest Parkway Montgomery AL 36199 C (864)511-9764 25 73 Gemini Ave Scranton PA 98589 I (584)568-8788 27 751 Redwing Avenue Pittsburgh PA 54875 C (587)648-9873 28 7 Becker Avenue Carlsbad CA 46748 I (365)458-9876 29 6 Old Gate Terrace Washington DC 33548 I (804)548-5874 30 64509 Monica Crossing San Antonio TX 35468 C (803)834-3981 31 60 Marquette Park San Jose CA 95160 I (987)548-9875 32 998 Vahlen Avenue Worcester MA 54875 I (801)469-9584 33 665 Anthes Parkway Oakland CA 94627 I (987)548-3254 35 54113 Westfield Junction Kansas CIty MO 64187 C (587)487-9652 36 8437 Briar Crest Drive Houston TX 77276 I (592)697-9685 37 650 Oakridge Plaza Aurora CO 80015 I (589)835-9323 40 30 Lotheville Court Oklahoma CIty OK 73147 C (987)254-9645 41 352 Porter Court Grand Rapids MI 49518 I (546)321-5487 42 367 Dixon Drive Topeka KS 66642 I (654)218-5874 46 957 Shoshone Circle Hagesrstown MD 21747 C (564)465-5874 47 88504 Dryden Park Denver CO 80243 I (847)587-8754 48 93 Cambridge Way Spring Hill FL 20167 C (889)893-6452 49 836 Gina Crossing Sterling VA 23587 I (842)242-4509 50 46 Brenthwood Way Philadelphia PA 25487 C (587)987-3254 51 170 Schmilgen Drive Saint Augustine FL 34251 I (584)659-9363 53 5626 Sage Ave Roanoke VA 23654 I (654)987-6245 54 9834 Hooker Park Long Beach CA 98342 C (548)654-3265 55 2867 Declaration Circle Lehigh Acres FL 25412 I (232)652-9641 56 5418 Summit Hill Columbia SC 21545 I (658)548-9872 57 2541 Sheridan Junction Vienna VA 25635 I (982)837-8123 58 93 Vidon Park Dallas TX 25415 I (412)484-9583 59 959 Kropf Hill Bethesda MD 54124 I (874)824-0293 60 243 Burnout Place Houston TX 77001 C (213)456-8479 (50 row(s) affected)

Page 42: FinalDocumentSunshine_Winery

42 SUNSHINE WINERY DATABASE DOCUMENTATION

Customer Order TABLE

Customer Order

CustomerOrderNo CustomerID OrderDate ShipmentDate --------------- ----------- ---------- ------------ 1 1 2015-11-13 2015-11-14 2 2 2015-11-15 2015-11-15 3 3 2015-11-14 2015-11-15 4 4 2015-11-16 2015-11-18 5 5 2015-10-23 2015-10-24 6 6 2015-08-23 2015-08-24 7 7 2015-07-23 2015-07-24 8 8 2015-06-23 2015-06-24 9 9 2015-05-15 2015-06-17 10 10 2015-03-24 2015-03-24 11 11 2015-03-05 2015-03-06 12 12 2015-03-19 2015-03-20 13 13 2015-02-23 2015-02-25 14 14 2015-07-04 2015-07-07 15 15 2015-01-06 2015-01-08 16 16 2015-10-01 2015-10-03 17 17 2015-07-01 2015-07-03 18 18 2015-06-02 2015-06-04 19 19 2015-08-24 2015-08-26 20 20 2015-08-13 2015-08-15 21 21 2015-07-15 2015-07-16 22 22 2015-08-02 2015-08-03 23 25 2015-06-25 2015-06-26 24 27 2015-02-11 2015-02-13 25 28 2015-02-12 2015-02-14 26 29 2015-08-05 2015-08-07 27 30 2015-09-11 2015-09-13 28 31 2015-11-11 2015-11-13 29 32 2015-10-15 2015-10-17 30 33 2015-08-06 2015-08-08 (30 row(s) affected)

Page 43: FinalDocumentSunshine_Winery

SUNSHINE WINERY DATABASE DOCUMENTATION 43

Customer Order Line TABLE Customer Order Line

CustomerOrderNo ProductID QuantityOrdered QuantityShipped ActualPrice --------------- --------- --------------- --------------- --------------------- 1 2 2 2 30.00 1 4 3 3 36.00 1 12 5 4 60.00 2 3 1 1 25.00 2 11 8 3 45.00 2 13 7 7 182.00 2 15 8 7 140.00 3 54 30 27 702.00 3 66 15 14 238.00 4 40 35 35 1120.00 4 43 27 25 725.00 5 37 50 24 1080.00 6 29 48 35 280.00 6 58 13 13 507.00 7 67 23 21 483.00 8 22 16 16 560.00 8 24 10 10 140.00 8 28 1 1 30.00 8 31 2 2 48.00 9 36 5 5 150.00 9 50 11 11 121.00 9 57 8 8 224.00 10 42 6 6 120.00 10 65 24 24 192.00 11 48 15 15 285.00 11 49 40 40 1040.00 11 53 15 15 195.00 12 38 25 25 300.00 13 1 30 30 1.00 13 30 5 5 5.00 13 49 45 45 1170.00 14 26 30 30 300.00 14 29 45 45 360.00 14 46 30 30 660.00 14 47 33 33 264.00 14 53 25 25 325.00 14 62 10 10 160.00 15 7 10 10 10.00 15 15 20 20 15.00 15 25 21 21 12.00 16 51 2 2 46.00 16 53 1 1 13.00 17 45 3 3 45.00 17 48 2 2 38.00 18 19 1 1 27.00 18 26 4 4 40.00 20 11 5 5 50.00 22 10 40 40 1200.00 22 19 32 32 864.00 22 22 15 15 525.00 22 37 21 21 945.00 23 15 5 5 100.00 23 24 5 5 140.00 23 47 2 2 16.00 24 36 3 3 90.00 24 48 2 2 38.00 24 50 10 10 140.00 25 17 32 32 320.00 25 19 7 7 189.00 26 10 10 10 300.00 26 22 5 5 175.00 26 28 16 16 480.00 27 13 27 27 702.00

Page 44: FinalDocumentSunshine_Winery

44 SUNSHINE WINERY DATABASE DOCUMENTATION

27 15 10 10 200.00 29 37 4 4 180.00 29 42 5 5 100.00 29 46 8 8 176.00 29 55 10 10 320.00 30 2 15 15 10.00 30 4 10 10 5.00 (70 row(s) affected)

Employee TABLE

Employee

EmployeeID FirstName LastName Street City State Zip Position Phone SupervisorID ---------- --------------- -------------------- ------------------------------ ------------------------- ----- ----- -------------------- ------------ ------------ 1114 Carter Pewtershmit 555 RI Road Quahog CA 12345 Owner (555)-123-1325 NULL 1116 Peter Griffin 123 Spooner Street Quahog CA 12345 Vineyard Manager (555)-154-1234 1114 1117 Lois Griffin 123 Sponner Street Quahog CA 12345 Vineyard Manager NULL 1114 1118 Brian Griffin 123 Spooner Street Quahog CA 12345 Vineyard Manager (555)-549-4656 1114 1119 Stewie Griffin 123 Spooner Street Quahog CA 12345 Vineyard Manager (555)-879-6661 1114 1120 Meg Griffin 456 Spooner Street Quahog CA 54445 Vineyard Manager (123)-595-8746 1114 1121 Homer Simpson 125 Happy Hideaway Springfield CA 54446 Vineyard Manager (555)-691-6911 1114 1122 Marge Simpson 126 Main Street Springfield CA 54446 Vineyard Manager (555)-897-1234 1114 1123 Clint Eastwood 111 Awesome Ave Moreno Valley CA 54444 Field Hand (123)-999-7774 1116 1124 Harry Clahan 123 Dirty Harry Street San Francisco CA 54464 Field Hand (558)-546-9111 1117 1125 Tom Hanks 145 World War Way Sierra Valley CA 54478 Field Hand (879)-499-1235 1117 1126 James Ryan 111 Save Me Street San Diego CA 54593 Field Hand (555)-999-1111 1118 1127 Raymond Barone 111 Loves Ave Long Island CA 99872 Field Hand (678)-999-9999 1118 1128 Robert Barone 554 Cop Lane Westchase CA 95866 Field Hand (798)-588-9999 1119 1129 Debra Barone 556 Madeup Street Abby CA 65986 Field Hand (897)-895-9852 1119 1130 Marie Barone 569 Annoy Alley New Yorkshire CA 66545 Field Hand (999)-246-5684 1120 1132 Frank Barone 569 Annoy Alley New Yorkshire CA 66545 Field Hand (999)-246-5685 1120 1133 Lenard Hoffseder 585 Big Bang Pasadena CA 55975 Field Hand (558)-586-5474 1121 1134 Sheldon Cooper 586 Big Bang Pasadena CA 55975 Field Hand (585)-995-2686 1121 1135 Howard Walowitz 6958 Big Bang Pasadena CA 55959 Wine Maker (857)-474-3843 1114 1137 Raz Cutherpally 5449 Physics Way Pasadena CA 58756 Wine Maker (559)-334-2214 1114 1138 Darth Vater 1 Death Star Place Milkway Valley CA 11235 Wine Maker (697)-664-1123 1114 1139 Luke Skywalker 321 Hath Place Exoplanet City CA 88558 Wine Maker (554)-698-2585 1114 1140 Yoda Greenguy 142 Swamp Planet Place Degoba CA 12346 Assistant NULL 1135 1142 Teddy Rosevelt 252 National Park Dr Bear Lake CA 55286 Assistant (545)-551-1264 1137 1143 George Bush 43 President Little Texas CA 43434 Assistant (559)-998-3110 1138 1144 Donald Trump 564 Sky Scrapper Place Badhare CA 54459 Assistant (558)-984-3646 1139 1145 Ben Carson 45 President Whitehouse CA 45455 Tasting Room Manager (559)-994-2585 1114 1146 Peter Sheridan 7942 Fort Loop New Port CA 34658 BarTender (552)-527-2545 1145 1148 John Doe 585 Palace Loop Port South CA 68456 Server (658)-585-2886 1145 1149 George Washington 1600 Penn Ave Washington CA 66455 Server (001)-001-0001 1145 1150 Abraham Lincold 1616 Penn Ave Washington CA 64645 Server (016)-016-0016 1145 1151 Ulysess Grant 5756 Gettyburg Ave Badhare CA 54459 Server (000)-190-1864 1145 1152 George Patton 2533 General Way Little Texas CA 43434 Server (585)-665-1944 1145 1153 Henry Lionheart 5855 Brittish Way New Yorkshire CA 66545 Janitor NULL 1145 1154 John Smith 2184 2nd Street Abby CA 65986 Tour Guide (649)-587-8544 1145 1155 Mary Brown 1546 Griswald Lane Abby CA 65986 Tour Guide (548)-546-2844 1145 1156 Tony Stewart 1158 Car Loop Exoplanet City CA 88558 Maintenance Manager (256)-548-2468 1114 1157 Dale Earnheart 1485 Three Place Exoplanet City CA 88558 Maintenance Worker (555)-284-5849 1156 1159 George Picard 5446 Enterprise Road Milkyway Valley CA 11235 Maintennace Worker (255)-248-5446 1156 1160 Ronda Rousey 123 MMA Street Degoba CA 12346 Maintenance Wor (564)-254-2995 1156 1161 Jason Aldean 574 Country Way Degoba CA 12346 Maintenance Workerq (684)-468-8978 1156 1162 Davey Crocket 546 Alamo Drive Bear Lake CA 55286 Maintenace Worker (249)-554-4469 1156 1163 Matt Damon 844 Famous Street Bear Lake CA 55286 Shipping Manager (856)-576-2648 1114 1164 Sargent Shultz 155 Germany Streetq Whitehouse CA 45455 Shipping Clerk (168)-546-1667 1163 1165 The Doctor 218 Who Street Whitehouse CA 45455 Shipping Clerk (586)-594-6685 1163 1166 John Adams 546 Bill Ave Whitehouse CA 45455 Packager (189)-596-2696 1163 1167 Thomas Jefferson 556 Deco Street Whitehouse CA 45455 Forklift Driver (549)-564-5695 1163 1168 Ronald Reagan 4866 Republican Way Port South CA 68456 Order Filler (166)-598-9844 1163 1170 Jack Sparrow 546 Captain Street Port South CA 68456 Order Filler (556)-679-6893 1163 (50 row(s) affected)

Page 45: FinalDocumentSunshine_Winery

SUNSHINE WINERY DATABASE DOCUMENTATION 45

Grape TABLE

Grape

GrapeName StorageContainer AgingRequirement -------------------- ---------------- ---------------- Cabernet Sauvignon Stainless Steel 60 Chardonnay Stainless Steel 55 Malbec Oak 90 Merlot Oak 100 Sauvignon Blanc Stainless Steel 65 (5 row(s) affected)

Grape Percentage TABLE

Grape Percentage

GrapeName WineID GrapePercentage -------------------- ------ --------------------- Cabernet Sauvignon 9 1.000 Cabernet Sauvignon 10 1.000 Cabernet Sauvignon 15 0.500 Cabernet Sauvignon 16 0.300 Chardonnay 3 1.000 Chardonnay 4 1.000 Chardonnay 13 1.000 Chardonnay 14 0.400 Chardonnay 18 0.400 Chardonnay 19 0.500 Chardonnay 20 0.300 Chardonnay 22 0.400 Malbec 7 0.500 Malbec 8 0.300 Malbec 11 1.000 Malbec 12 1.000 Malbec 21 0.300 Merlot 1 1.000 Merlot 2 1.000 Merlot 7 0.500 Merlot 8 0.700 Merlot 17 0.500 Merlot 18 0.600 Merlot 21 0.700 Sauvignon Blanc 5 1.000 Sauvignon Blanc 6 1.000 Sauvignon Blanc 14 0.600 Sauvignon Blanc 15 0.500 Sauvignon Blanc 16 0.700 Sauvignon Blanc 17 0.500 Sauvignon Blanc 19 0.500 Sauvignon Blanc 20 0.700 Sauvignon Blanc 22 0.600 (33 row(s) affected)

Page 46: FinalDocumentSunshine_Winery

46 SUNSHINE WINERY DATABASE DOCUMENTATION

Harvest TABLE

Harvest

GrapeName VineyardName Vintage JuiceYield SugarContent -------------------- -------------------- ------- ----------- --------------------------------------- Sauvignon Blanc Arlington 2013 6251 0.058 Merlot Arlington 2014 6080 0.012 Cabernet Sauvignon Bluegrass 2013 2750 0.040 Sauvignon Blanc Bluegrass 2014 7491 0.046 Cabernet Sauvignon Dew Mont 2014 2930 0.036 Chardonnay Greenbay 2013 7215 0.060 Chardonnay Lexington 2014 7643 0.052 Malbec Lushfield 2013 4251 0.015 Merlot Valhala 2013 6070 0.050 Malbec Valhala 2014 4187 0.008 (10 row(s) affected)

Individual TABLE

Individual

CustomerID FirstName LastName DateOfBirth ----------- --------------- -------------------- ----------- 15 Harold Ray 1962-01-17 16 Carl Spencer 1953-03-20 17 Jaqueline Lewis 1992-04-17 18 Louis Brooks 1957-04-15 19 Douglas Henry 1991-12-11 20 Cheryl Medina 1959-11-23 21 Chris Watson 1960-09-08 25 Steve Stevens 1973-01-29 28 Wanda Alvarez 1954-07-16 29 Carlos Shaw 1979-09-08 31 Clarence Bowman 1994-07-13 32 Kenneth Miller 1980-03-04 33 James Holmes 1959-05-09 36 Bonnie Garcia 1985-01-27 41 Margaret Cox 1954-03-04 42 Paula Henson 1981-09-20 47 Richard Coleman 1974-09-14 49 Antonio Carr 1952-07-29 51 Ernest Berry 1989-06-21 53 Stephen Ramos 1979-04-18 55 Rachel Jenkins 1978-07-03 56 Martin Torres 1982-02-04 57 Paula Hicks 1985-01-15 58 Roy Stanley 1978-07-20 59 Lois Thomas 1972-02-07 (25 row(s) affected)

Page 47: FinalDocumentSunshine_Winery

SUNSHINE WINERY DATABASE DOCUMENTATION 47

Product TABLE

Product

ProductID CaseQuantity ListPrice BottleID WineID --------- ------------ --------------------- -------- ------ 1 24 15.00 1 1 2 12 30.00 10 1 3 6 25.00 19 1 4 24 16.00 2 2 5 12 24.00 11 2 7 6 20.00 20 2 8 24 12.00 3 3 9 12 22.00 12 3 10 6 30.00 21 3 11 24 10.00 4 4 12 12 15.00 16 4 13 6 26.00 22 4 14 24 14.00 5 5 15 12 20.00 13 5 16 6 29.00 23 5 17 24 10.00 6 6 18 12 20.00 14 6 19 6 27.00 24 6 20 24 14.00 7 7 21 12 24.00 15 7 22 6 35.00 25 7 23 24 7.00 8 8 24 12 14.00 16 8 25 6 28.00 19 8 26 24 10.00 9 9 27 12 20.00 17 9 28 6 30.00 20 9 29 24 8.00 1 10 30 12 16.00 18 10 31 6 24.00 19 10 32 24 10.00 9 11 33 12 19.00 15 11 34 6 29.00 22 11 35 24 15.00 9 12 36 12 30.00 18 12 37 6 45.00 21 12 38 24 12.00 7 13 39 12 24.00 11 13 40 6 32.00 20 13 41 24 9.00 1 14 42 12 20.00 10 14 43 6 29.00 24 14 44 24 6.00 1 15 45 12 15.00 15 15 46 6 22.00 24 15 47 24 8.00 9 16 48 12 19.00 18 16 49 6 26.00 23 16 50 24 11.00 6 17 51 12 23.00 14 17 52 6 36.00 25 17 53 24 13.00 4 18 54 12 26.00 14 18 55 6 32.00 20 18 56 24 14.00 8 19 57 12 28.00 17 19

Page 48: FinalDocumentSunshine_Winery

48 SUNSHINE WINERY DATABASE DOCUMENTATION

58 6 39.00 25 19 59 24 11.00 3 20 60 12 22.00 14 20 61 6 44.00 22 20 62 24 16.00 2 21 63 12 29.00 16 21 64 6 42.00 21 21 65 24 8.00 1 22 66 12 17.00 10 22 67 6 23.00 25 22 (66 row(s) affected)

Soil Type TABLE

Soil Type

VineyardName SoilType -------------------- -------------------- Arlington Loamy Bluegrass Sandy Dew Mont Silty Greenbay Sandy Lexington Silty Lushfield Loamy Valhala Loamy (7 row(s) affected)

Vendor TABLE

Vendor

VineyardName SoilType -------------------- -------------------- Arlington Loamy Bluegrass Sandy Dew Mont Silty Greenbay Sandy Lexington Silty Lushfield Loamy Valhala Loamy (7 row(s) affected)

Vendor Order TABLE

Vendor Order

VendorOrderNo DateOrdered DateReceived VendorID ------------- ----------- ------------ -------- 9 2015-11-15 2015-11-17 4 10 2015-11-22 2015-11-24 6 11 2015-11-24 2015-11-26 8 20 2015-09-28 2015-10-11 10 21 2015-07-04 2015-07-10 12 22 2015-08-12 2015-08-28 14 23 2015-10-24 2015-10-26 16 24 2015-10-25 2015-10-29 18 (8 row(s) affected)

Page 49: FinalDocumentSunshine_Winery

SUNSHINE WINERY DATABASE DOCUMENTATION 49

Vendor Order Line TABLE

Vendor Order Line

BottleID VendorOrderNo QuantityOrdered QuantityReceived ActualCost -------- ------------- --------------- ---------------- --------------------- 1 9 6 6 21.00 1 23 6 6 21.00 2 11 5 5 17.50 2 21 5 5 17.50 3 11 10 8 34.00 4 11 7 7 38.50 4 20 8 8 28.00 6 20 10 10 35.00 7 9 11 11 38.50 7 23 3 3 10.50 8 9 3 3 10.50 8 21 3 3 10.50 9 11 6 6 21.00 10 20 6 6 21.00 11 10 15 15 63.75 12 21 7 7 29.75 13 20 7 7 29.75 14 23 15 15 63.75 15 9 4 4 17.00 15 11 8 8 34.00 16 21 4 4 17.00 16 23 4 4 17.00 17 10 10 10 42.50 18 21 8 8 34.00 19 23 16 16 88.00 20 20 5 5 27.50 20 21 5 5 27.50 21 10 9 9 49.50 21 20 3 3 16.50 22 10 13 13 71.50 23 9 6 6 33.00 23 21 2 2 11.00 24 11 16 16 88.00 25 9 8 8 44.00 25 11 4 4 22.00 26 20 6 6 33.00 27 10 10 10 55.00 (37 row(s) affected)

Vineyard TABLE Vineyard VineyardName EmployeeID Size -------------------- ---------- --------------------------------------- Arlington 1117 8.00 Bluegrass 1118 5.60 Dew Mont 1116 5.00 Greenbay 1120 7.00 Lexington 1121 4.00 Lushfield 1119 4.50 Valhala 1122 3.20 (7 row(s) affected)

Page 50: FinalDocumentSunshine_Winery

50 SUNSHINE WINERY DATABASE DOCUMENTATION

Wine TABLE Wine WineID Name Vintage Category PercentAlcohol TotalVolume WineMakerID ------ ------------- ------- -------- ------------------ ----------- ----------- 1 Merlot 2015 Red 0.250 1000 1135 2 Merlot 2014 Red 0.250 1500 1135 3 Chardonnay 2015 White 0.175 1575 1137 4 Chardonnay 2014 White 0.134 2544 1137 5 Riesling 2015 White 0.145 1542 1138 6 Riesling 2014 White 0.162 2415 1138 7 Pinot Noir 2015 Red 0.164 3201 1139 8 Pinot Noir 2014 Red 0.210 2901 1139 9 Cabernet 2015 Red 0.154 2452 1135 10 Cabernet 2014 Red 0.152 1999 1135 11 Burgandy 2015 Red 0.154 2541 1137 12 Burgandy 2014 Red 0.149 1896 1137 13 Zinfandel 2015 Red 0.250 2486 1138 14 Zinfindel 2014 Red 0.240 2154 1138 15 Rose 2015 Rose 0.154 1454 1139 16 Rose 2014 Rose 0.154 1586 1139 17 Sparkling 2015 Rose 0.156 2451 1135 18 Sparkling 2014 Rose 0.200 1893 1135 19 Sweet White 2015 White 0.134 4201 1137 20 Sweet White 2014 White 0.129 4000 1137 21 Red Sangria 2015 Red 0.250 5000 1139 22 White Sangria 2014 White 0.250 4852 1138 (22 row(s) affected)