Best writers. Best papers. Let professionals take care of your academic papers

Order a similar paper and get 15% discount on your first order with us
Use the following coupon "FIRST15"
ORDER NOW

This DB will also be used in week 5 as the target for other SQL questions. We will refer to this table in other contexts as well, so, loading the data will be a one-time task ( except for later edits !! :-) )

Arizona State University Polytechnic Campus    

Ch4Ch5VeggieDatabaseA6.1DBGarden.doc

Assignment  A6.1DBGarden for 2016

This DB will also be used in week 5 as the target  for other SQL questions.   We will refer to  this table in other contexts as well, so, loading the data will be a one-time task ( except for later edits !! 🙂 )

For this assigment, A6.1DBGarden,  I will ask you to build  and query it using the built in NB tools.

Assignment details:

Build a database , the table below, and send in a screen shot of the create,  insert code, and a

query that prints out the name, variety, season, and daysToHarvest, sorted by name,

embedded within a work document.

In your table creation code, include checks on season, daysToHarvest, and watering

Scenario: You are a consultant to home gardeners who ask you to advise them as to what to grow and when to plant.You will show them a database that consists of the following sketches for tables that  you will make available for their particular situation( to be revised as needed)

The vegetable name will be something like Peas, and the variety will be something like Wando. 

plantingSeason, specific  to the Tucson/Phoenix  area, is an enumeration  {spring, summer, fall, winter}

veggieID :    Int   // the key for this table

daysToHarvest : Int     Check < 80 ( a required check in the table)

watering : Decimal(4,2) is the estimated total water needed for a unit of planting area, Check < 100.00 

All entries in the table are required, no nulls allowed. 

Database : MyGarden   // use whatever name you wish

Table 1.  VeggiePropertiesRR( veggieID, veggieName, variety, plantingSeason, daysToHarvest, watering)

Use the data supplied in the table below 

VeggiePropertiesRR

veggieID name variety season daysToHarvest watering (inch/week)
1 carrot Nantes winter 60 0.8
2 tomato Beefsteak spring 79 1.1
3 cucumber Marketmore 76 summer 68 0.8
4 squash Straightneck spring 54 1
5 carrot Danvers winter 75 1
6 peas Sugar Daddy fall 62 1.2
7 spinach Hierloom fall 45 1.25
8 cucumber Cocozelle summer 55 0.8
9 spinach Bloomsdale fall 36 1.25
10 tomato Sweetie spring 70 1.1
11 tomato Jelly Bean spring 70 1.1
12 carrot Imperator winter 77 1
13 cucumber national spring 55 0.8
14 tomato Red Cherry spring 70 1.1
15 peas Alaska fall 55 1.2
16 pumpkin Conneticut summer 79 1
           
           
           
 
Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"