Which of the following outputs would be produced when this SELECT is executed? Explain. (Note: data...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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.idnc and donation.driveno = drive.driveno; Output A: IDNO NAME YRGOAL DRI CONTAMT DRIVENAME 11111 Stephen Daniels 500 100 25 Animal Home 12121 Jennifer Ames 400 200 40 Animal Home 23456 Susan Ash 100 100 20 Animal Home 33333 Nancy Taylor 22222 Carl Hersey 50 300 100 10 Animal Home 10 Animal Home 50 Animal Home 35 Animal Home 12121 Jennifer Ames 400 100 11111 Stephen Daniels 23456 Susan Ash 500 200 100 300 10 Animal Home Output B: IDNO NAME YRGOAL DRI CONTAMT DRIVENAME 23456 Susan Ash 100 100 20 Kids Shelter 23456 Susan Ash 100 100 20 Animal Home 23456 Susan Ash 100 100 20 Health Aid 23456 Susan Ash 33333 Nancy Taylor 33333 Nancy Taylor 33333 Nancy Taylor 33333 Nancy Taylor 23456 Susan Ash 23456 Susan Ash 23456 Susan Ash 23456 Susan Ash 100 100 20 Half Way 10 Kids Shelter 50 300 50 300 10 Animal Home 50 300 50 300 10 Health Aid 10 Half Way 10 Kids Shelter 100 300 100 300 10 Animal Home 10 Health Aid 10 Half Way 100 300 100 300 Output C: IDNO NAME YRGOAL DRI CONTAMT DRIVENAME 500 100 25 Kids Shelter 20 Kids Shelter 10 Kids Shelter 50 Kids Shelter 11111 Stephen Daniels 23456 Susan Ash 100 100 22222 Carl Hersey 12121 Jennifer Ames 100 400 100 400 200 40 Animal Home 35 Animal Home 10 Health Aid 12121 Jennifer Ames 11111 Stephen Daniels 33333 Nancy Taylor 500 200 50 300 23456 Susan Ash 100 300 10 Health Aid 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.idnc and donation.driveno = drive.driveno; Output A: IDNO NAME YRGOAL DRI CONTAMT DRIVENAME 11111 Stephen Daniels 500 100 25 Animal Home 12121 Jennifer Ames 400 200 40 Animal Home 23456 Susan Ash 100 100 20 Animal Home 33333 Nancy Taylor 22222 Carl Hersey 50 300 100 10 Animal Home 10 Animal Home 50 Animal Home 35 Animal Home 12121 Jennifer Ames 400 100 11111 Stephen Daniels 23456 Susan Ash 500 200 100 300 10 Animal Home Output B: IDNO NAME YRGOAL DRI CONTAMT DRIVENAME 23456 Susan Ash 100 100 20 Kids Shelter 23456 Susan Ash 100 100 20 Animal Home 23456 Susan Ash 100 100 20 Health Aid 23456 Susan Ash 33333 Nancy Taylor 33333 Nancy Taylor 33333 Nancy Taylor 33333 Nancy Taylor 23456 Susan Ash 23456 Susan Ash 23456 Susan Ash 23456 Susan Ash 100 100 20 Half Way 10 Kids Shelter 50 300 50 300 10 Animal Home 50 300 50 300 10 Health Aid 10 Half Way 10 Kids Shelter 100 300 100 300 10 Animal Home 10 Health Aid 10 Half Way 100 300 100 300 Output C: IDNO NAME YRGOAL DRI CONTAMT DRIVENAME 500 100 25 Kids Shelter 20 Kids Shelter 10 Kids Shelter 50 Kids Shelter 11111 Stephen Daniels 23456 Susan Ash 100 100 22222 Carl Hersey 12121 Jennifer Ames 100 400 100 400 200 40 Animal Home 35 Animal Home 10 Health Aid 12121 Jennifer Ames 11111 Stephen Daniels 33333 Nancy Taylor 500 200 50 300 23456 Susan Ash 100 300 10 Health Aid
Expert Answer:
Posted Date:
Students also viewed these programming questions
-
Which of the following would be subtracted from the balance per books on a bank reconciliation? deposits in transit outstanding checks Oerror by the company in recording a check for $732 as $723...
-
Select the best answer. 1. Which of the following would be least likely to be classied as a citys general capital assets? a. Roads and bridges b. Electric utility lines c. Computers used by the...
-
Select the best answer. 1. Which of the following items is least likely to appear on the balance sheet of a capital projects fund? a. Cash b. Investments c. Construction in process d. Reserve for...
-
Identify an accurate sentence about parenting in the United States. a. Fathers of toddlers play more roughly with daughters than with sons. b. During the first year, fathers treat boys and girls as...
-
Obtain General Electrics 2009 annual report either through the Investor Relations portion of its Web site (do a web search for GE investor relations) or go to www.sec.gov and click Search for Company...
-
ABC, activity area cost-driver rates, product cross-subsidization. Idaho Potatoes (IP) operates at capacity and processes potatoes into potato cuts at its highly automated Pocatello plant. It sells...
-
Spensers Stores carried out the following transactions relating to a single product in October. Required (a) Prepare general journal entries to record the transactions, assuming that a perpetual...
-
The Toyota Camry is one of the best-selling cars in North America. The cost of a previously owned Camry depends on many factors, including the model year, mileage, and condition. To investigate the...
-
16. The area (in sq. units) of the part of the circle x + y=36, which is outside the parabola y = 9x is: (a) 24+33 (b) 24-33 (c) 12+33 (d) 12-33
-
Tim Peterman, director of logistics at Cameron Power Equipment in Charlotte, North Carolina, was evaluating the future of the company's warehouse in Atlanta, Georgia. The vice president of logistics,...
-
The ABC company is considering two investment opportunities. Investment A has an initial cost of $100,000 and will generate cash flows of $40,000 per year for the next three years. Investment B has...
-
Differentiate linear search and binary search.
-
Define merge sort. What are the advantages of merge sort?
-
Describe in brief, the terms related to the graph: in-degree, out-degree, nodes and edges.
-
Why Sorting algorithms are important?
-
How do you insert a new element in a BST?
-
Newhard Company applies overhead cost to jobs on the basis of 110% of direct labor cost. Job 313 includes 1,250 units and its job cost sheet contains $9,200 in direct materials and $10,500 in direct...
-
Nitrogen monoxide reacts with hydrogen as follows: 2NO(g)+ H2(g) N2O(g) + H2O(g) The rate law is [H2]/ t = k[NO]2[H2], where k is 1.10 107 L2/(mol2s) at 826oC. A vessel contains NO and H2 at...
-
Obaidullah Hamzah, who recently sold his Ford Mustang, placed $15,000 in a savings account paying annual compound interest of 7 percent. a. Calculate the amount of money that will be accrued if he...
-
How many years will the following take? a. \($550\) to grow to \($1,049.50\) if invested at 6 percent compounded annually b. \($37\) to grow to \($63.87\) if invested at 9 percent compounded annually...
-
What is the present value of the following future amounts? a. $805 to be received 10 years from now discounted back to the present at 10 percent b. $376 to be received 5 years from now discounted...
Study smarter with the SolutionInn App