SQL SELECT donor.idno, name, yrgoal, donation.driveno, contamt, drivename 2 FROM donation, donor, drive 3 WHERE donation.idno - donor.idno and donation.driveno - drive.driveno;

Oracle 12c: SQL
3rd Edition
ISBN:9781305251038
Author:Joan Casteel
Publisher:Joan Casteel
Chapter4: Constraints
Section: Chapter Questions
Problem 3MC: Which of the following SQL statements is invalid and returns an error message? ALTER TABLE books ADD...
icon
Related questions
Question

Please solve!

First: Which of the following outputs would be produced when this SELECT is executed? Explain. (Note: data shown below in question #2!)
SQL SELECT donor.idno, name, yrgoal, donation.driveno, contamt, drivename
2 FROM donation, donor, drive
3 WHERE donation.idno = donor.idno and donation.driveno = drive.driveno;
Output A:
IDNO NAME
YRGOAL DRI
CONTAMT DRIVENAME
25 Animal Home
11111 Stephen Daniels
12121 Jennifer Ames
500 100
400 200
40 Animal Home
23456 Susan Ash
33333 Nancy Taylor
22222 Carl Hersey
100 100
50 300
100
20 Animal Home
10 Animal Home
10 Animal Home
12121 Jennifer Ames
400 100
50 Animal Home
500 200
11111 Stephen Daniels
23456 Susan Ash
35 Animal Home
100 300
10 Animal Home
Output B:
IDNO NAME
YRGOAL DRI
CONTAMT DRIVENAME
100 100
100 100
23456 Susan Ash
20 Kids Shelter
20 Animal Home
23456 Susan Ash
100 100
100 100
50 300
50 300
23456 Susan Ash
20 Health Aid
23456 Susan Ash
33333 Nancy Taylor
33333 Nancy Taylor
33333 Nancy Taylor
33333 Nancy Taylor
20 Half Way
10 Kids Shelter
10 Animal Home
50 300
50 300
10 Health Aid
10 Half Way
23456 Susan Ash
100 300
10 Kids Shelter
23456 Susan Ash
100 300
10 Animal Home
23456 Susan Ash
100 300
10 Health Aid
23456 Susan Ash
100 300
10 Half Way
Output C:
IDNO NAME
YRGOAL DRI
CONTAMT DRIVENAME
11111 Stephen Daniels
500 100
25 Kids Shelter
23456 Susan Ash
100 100
20 Kids Shelter
22222 Carl Hersey
12121 Jennifer Ames
12121 Jennifer Ames
11111 Stephen Daniels
33333 Nancy Taylor
100
10 Kids Shelter
400 100
50 Kids Shelter
400 200
40 Animal Home
500 200
50 300
100 300
35 Animal Home
10 Health Aid
10 Health Aid
23456 Susan Ash
Transcribed Image Text:First: Which of the following outputs would be produced when this SELECT is executed? Explain. (Note: data shown below in question #2!) SQL SELECT donor.idno, name, yrgoal, donation.driveno, contamt, drivename 2 FROM donation, donor, drive 3 WHERE donation.idno = donor.idno and donation.driveno = drive.driveno; Output A: IDNO NAME YRGOAL DRI CONTAMT DRIVENAME 25 Animal Home 11111 Stephen Daniels 12121 Jennifer Ames 500 100 400 200 40 Animal Home 23456 Susan Ash 33333 Nancy Taylor 22222 Carl Hersey 100 100 50 300 100 20 Animal Home 10 Animal Home 10 Animal Home 12121 Jennifer Ames 400 100 50 Animal Home 500 200 11111 Stephen Daniels 23456 Susan Ash 35 Animal Home 100 300 10 Animal Home Output B: IDNO NAME YRGOAL DRI CONTAMT DRIVENAME 100 100 100 100 23456 Susan Ash 20 Kids Shelter 20 Animal Home 23456 Susan Ash 100 100 100 100 50 300 50 300 23456 Susan Ash 20 Health Aid 23456 Susan Ash 33333 Nancy Taylor 33333 Nancy Taylor 33333 Nancy Taylor 33333 Nancy Taylor 20 Half Way 10 Kids Shelter 10 Animal Home 50 300 50 300 10 Health Aid 10 Half Way 23456 Susan Ash 100 300 10 Kids Shelter 23456 Susan Ash 100 300 10 Animal Home 23456 Susan Ash 100 300 10 Health Aid 23456 Susan Ash 100 300 10 Half Way Output C: IDNO NAME YRGOAL DRI CONTAMT DRIVENAME 11111 Stephen Daniels 500 100 25 Kids Shelter 23456 Susan Ash 100 100 20 Kids Shelter 22222 Carl Hersey 12121 Jennifer Ames 12121 Jennifer Ames 11111 Stephen Daniels 33333 Nancy Taylor 100 10 Kids Shelter 400 100 50 Kids Shelter 400 200 40 Animal Home 500 200 50 300 100 300 35 Animal Home 10 Health Aid 10 Health Aid 23456 Susan Ash
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning
A Guide to SQL
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781285196145
Author:
Steven, Steven Morris, Carlos Coronel, Carlos, Coronel, Carlos; Morris, Carlos Coronel and Steven Morris, Carlos Coronel; Steven Morris, Steven Morris; Carlos Coronel
Publisher:
Cengage Learning