Fourth: What would be produced? Explain for each of the three selects below. Note the table is the donor table with data shown in #2 above. SQL SELECT contact, AVG (yrgoal) 2 FROM donor 3 GROUP BY contact; SOL SELECT state, contact, AVG (yrgoal) 2 FROM donor 3 GROUP BY state, contact; SQL select state, contact, avg (yrgoal) 2 from donor 3 group by state; SQL> select state, avg (yrgoal) 2 from donor 3 where yrgoal > 100 group by state 5 having state = 'MA';

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

Please solve!

Fourth: What would be produced? Explain for each of the three selects below. Note the table is the donor table with data shown in #2 above.
SQL SELECT contact, AVG (yrgoal)
2 FROM donor
3 GROUP BY contact;
SQL SELECT state, contact, AVG (yrgoal)
2 FROM donor
3 GROUP BY state, contact;
SQL select state, contact, avg (yrgoal)
2 from donor
3 group by state;
SQL> select state, avg (yrgoal)
from donor
where yrgoal > 100
group by state
5 having state - 'MA';
Transcribed Image Text:Fourth: What would be produced? Explain for each of the three selects below. Note the table is the donor table with data shown in #2 above. SQL SELECT contact, AVG (yrgoal) 2 FROM donor 3 GROUP BY contact; SQL SELECT state, contact, AVG (yrgoal) 2 FROM donor 3 GROUP BY state, contact; SQL select state, contact, avg (yrgoal) 2 from donor 3 group by state; SQL> select state, avg (yrgoal) from donor where yrgoal > 100 group by state 5 having state - 'MA';
Donor table
IDNO NAME
STADR
CITY
ST ZIP
DATEFST
YRGOAL CONTACT
-----
-----
MA 02345 03-JUL-98
Providence RI 02045 24-MAY-97
500 John Smith
400 Susan Jones
11111 Stephen Daniels 123 Elm St
12121 Jennifer Ames
22222 Carl Hersey
23456 Susan Ash
Seekonk
24 Benefit St
24 Benefit St
21 Main St
Providence RI 02045 03-JAN-98
Susan Jones
Fall River MA 02720 04-MAR-92
100 Amy Costa
50 John Adams
33333 Nancy Taylor
26 Oak St
Fall River MA 02720 04-MAR-92
34567 Robert Brooks
36 Pine St
Fall River MA 02720 04-APR-98
50 Amy Costa
Donation table (note that dri is actually driveno)
IDNO
DRI CONTDATE
CONTAMT
-----
--- ---
11111 100 07-JAN-99
25
11111 200 12-JUN-99
35
12121 200 23-FEB-99
40
12121 100 04-JUN-99
50
22222 100 14-MAR-99
10
23456 100 03-MAR-99
20
23456 300 14-JUN-99
10
33333 300 10-MAR-99
10
Drive table (note that dri is actually driveno)
DRI DRIVENAME
DRIVECHAIR
LASTYEAR
THISYEAR
---
100 Kids Shelter
200 Animal Home
Ann Smith
10000
Linda Grant
5000
300 Health Aid
400 Half Way
David Ross
7000
Robert Doe
Transcribed Image Text:Donor table IDNO NAME STADR CITY ST ZIP DATEFST YRGOAL CONTACT ----- ----- MA 02345 03-JUL-98 Providence RI 02045 24-MAY-97 500 John Smith 400 Susan Jones 11111 Stephen Daniels 123 Elm St 12121 Jennifer Ames 22222 Carl Hersey 23456 Susan Ash Seekonk 24 Benefit St 24 Benefit St 21 Main St Providence RI 02045 03-JAN-98 Susan Jones Fall River MA 02720 04-MAR-92 100 Amy Costa 50 John Adams 33333 Nancy Taylor 26 Oak St Fall River MA 02720 04-MAR-92 34567 Robert Brooks 36 Pine St Fall River MA 02720 04-APR-98 50 Amy Costa Donation table (note that dri is actually driveno) IDNO DRI CONTDATE CONTAMT ----- --- --- 11111 100 07-JAN-99 25 11111 200 12-JUN-99 35 12121 200 23-FEB-99 40 12121 100 04-JUN-99 50 22222 100 14-MAR-99 10 23456 100 03-MAR-99 20 23456 300 14-JUN-99 10 33333 300 10-MAR-99 10 Drive table (note that dri is actually driveno) DRI DRIVENAME DRIVECHAIR LASTYEAR THISYEAR --- 100 Kids Shelter 200 Animal Home Ann Smith 10000 Linda Grant 5000 300 Health Aid 400 Half Way David Ross 7000 Robert Doe
Expert Solution
Step 1

Computer Engineering homework question answer, step 1, image 1

trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Similar questions
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