3) Write a valid SQL statement that calculates the total weight of all ears of corn that were picked from the garden 4) Write a valid SSQL statement that would produce a result set like the following: Gardner | Plant I date I amount I Radish | 2005-07-16 I I Carrot I 2005-08-18I I Corn Tim 23 Tim 28 Tim I 2005-08-26 I 18

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
3) Write a valid SQL statement that calculates the total weight of all ears
of corn that were picked from the garden
4) Write a valid SQL statement that would produce a result set 1ike the
following:
Gardner | Plant
date
I amount
I Radish | 2005-07-16 I
Tim I Carrot I 2005-08-18 I
| 2005-08-28 I
Tim
23
26
Tim
I Corn
18
Transcribed Image Text:3) Write a valid SQL statement that calculates the total weight of all ears of corn that were picked from the garden 4) Write a valid SQL statement that would produce a result set 1ike the following: Gardner | Plant date I amount I Radish | 2005-07-16 I Tim I Carrot I 2005-08-18 I | 2005-08-28 I Tim 23 26 Tim I Corn 18
0) Please use the following CARDEN database to answer questions.
Location
Cardener
LocationID
Name
Sunlight Water
I GardenerID Name
Age
East
.28
.80
Mother
36
Father
Tim
1
North
.17
-04
38
West
38
-48
15
South
.45
.66
Erin
12
Plant
PlantID
Name
Sunlight
Water
Weight
Carrot
-26
-82
-08
1
Beet
.44
.80
.04
2
Corn
-44
-76
-26
3
Iomato
42
-60
.84
-16
Radish
.28
.02
Planted
Plant FK
GardenerFK LocationFK
Date
Seeds
----
04-18-2005
28
14
1
04-14-2005
2
04-18-2005
36
2
04-14-2005
20
12
04-19-2005
3
04-25-2005
30
4
04-30-2005
30
Picked
PlantFK GardenerFK LocationFK
Date
Amount
Weight
08-18-2005
28
2.32
08-16-2005
12
1.02
08-22-2005
08-28-2005
2
52
12.96
18
4.58
3
3
08-22-2005
15
3.04
4
07-16-2005
23
0.52
Some notes on terms:
- The database is for a simple garden kept by a small family
- They plant their garden in the spring and pick their garden in summer
- The picked amount is the number of items (one carrot, one beet, an ear of
corn, one tomato, one radish) picked.
3230
Transcribed Image Text:0) Please use the following CARDEN database to answer questions. Location Cardener LocationID Name Sunlight Water I GardenerID Name Age East .28 .80 Mother 36 Father Tim 1 North .17 -04 38 West 38 -48 15 South .45 .66 Erin 12 Plant PlantID Name Sunlight Water Weight Carrot -26 -82 -08 1 Beet .44 .80 .04 2 Corn -44 -76 -26 3 Iomato 42 -60 .84 -16 Radish .28 .02 Planted Plant FK GardenerFK LocationFK Date Seeds ---- 04-18-2005 28 14 1 04-14-2005 2 04-18-2005 36 2 04-14-2005 20 12 04-19-2005 3 04-25-2005 30 4 04-30-2005 30 Picked PlantFK GardenerFK LocationFK Date Amount Weight 08-18-2005 28 2.32 08-16-2005 12 1.02 08-22-2005 08-28-2005 2 52 12.96 18 4.58 3 3 08-22-2005 15 3.04 4 07-16-2005 23 0.52 Some notes on terms: - The database is for a simple garden kept by a small family - They plant their garden in the spring and pick their garden in summer - The picked amount is the number of items (one carrot, one beet, an ear of corn, one tomato, one radish) picked. 3230
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY