The database contains three tables: Suppliers_T(Key: SNUM), Parts_T(Key: PNUM) and Shipment T(Key: SNUM, PNUM). Assume all...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
The database contains three tables: Suppliers_T(Key: SNUM), Parts_T(Key: PNUM) and Shipment T(Key: SNUM, PNUM). Assume all the tables are connected through foreign keys. SNUM S1 S2 S3 S4 S5 PNUM P1 P2 P3 P4 P5 P6 Suppliers T SNAME STATUS CITY Smith 20 London Jones 10 Paris Blake 30 Paris 20 London. 30 Athens Clark Adams Parts T PNAME COLOR WEIGHT Nut Red 12 Bolt Green 17 Blue 17 Red 14 Cam Blue 15 Cog Red 19 Screw Screw SELECT DISTINCT Shipment_T.PNUM FROM Suppliers_T, Shipment T WHERE Suppliers_T.SNUM = Shipment_T.SNUM AND Suppliers T.SNAME = 'Jones'; A) 0 B) 2 24. What is the record returned by the following query? SELECT MIN(Parts_T.WEIGHT) FROM Parts T SNUM S1 $1 $1 S2 GROUP BY COLOR HAVING MIN(Parts_T.WEIGHT) <15; A) 12 B) 12 and 14 25. What is the record returned by the following query? SELECT DISTINCT Parts_T.PNAME S2 S3 23. How many records would the following SQL query return? S4 S4 C) 1 C) 14 Shipment T PNUM P1 P2 P6 P1 P2 P2 P2 P4 QTY 300 200 100 300 400 200 200 300 D) 3 D) Nothing is returned The database contains three tables: Suppliers_T(Key: SNUM), Parts_T(Key: PNUM) and Shipment T(Key: SNUM, PNUM). Assume all the tables are connected through foreign keys. SNUM S1 S2 S3 S4 S5 PNUM P1 P2 P3 P4 P5 P6 Suppliers T SNAME STATUS CITY Smith 20 London Jones 10 Paris Blake 30 Paris 20 London. 30 Athens Clark Adams Parts T PNAME COLOR WEIGHT Nut Red 12 Bolt Green 17 Blue 17 Red 14 Cam Blue 15 Cog Red 19 Screw Screw SELECT DISTINCT Shipment_T.PNUM FROM Suppliers_T, Shipment T WHERE Suppliers_T.SNUM = Shipment_T.SNUM AND Suppliers T.SNAME = 'Jones'; A) 0 B) 2 24. What is the record returned by the following query? SELECT MIN(Parts_T.WEIGHT) FROM Parts T SNUM S1 $1 $1 S2 GROUP BY COLOR HAVING MIN(Parts_T.WEIGHT) <15; A) 12 B) 12 and 14 25. What is the record returned by the following query? SELECT DISTINCT Parts_T.PNAME S2 S3 23. How many records would the following SQL query return? S4 S4 C) 1 C) 14 Shipment T PNUM P1 P2 P6 P1 P2 P2 P2 P4 QTY 300 200 100 300 400 200 200 300 D) 3 D) Nothing is returned
Expert Answer:
Answer rating: 100% (QA)
23 B Suppliers TSNUM ShipmentTSNUM returns all the records fr... View the full answer
Related Book For
Fundamentals Of Digital Logic With Verilog Design
ISBN: 9780073380544
3rd Edition
Authors: Stephen Brown, Zvonko Vranesic
Posted Date:
Students also viewed these programming questions
-
1 7.5 points eBook Print References ! Required information a. The database contains three tables containing information about this company's sales process: Inventory, Sales, and SalesItems. Use the...
-
P P1 P2 P3 P4 P5 The following diagram represents a profit-maximising dairy farm operating in perfect competition, where MPC is the Marginal Private Cost curve and AR is the Average Revenue curve for...
-
Green and blue LEDS became available many years after red LEDS were first developed. Approximately what energy gaps would you expect to find in green (525nm) and in blue (465nm) LEDS?
-
Chuck, a single taxpayer, earns $86,000 in taxable income and $20,000 in interest from an investment in City of Heflin bonds. (Use the U.S. tax rate schedule.) Required: a. If Chuck earns an...
-
The reporting principle requires auditors to express their opinion through the issuance of a written report. Required: a. What is the purpose of the auditors opinion and report? b. What are the major...
-
The marketing department of Jessi Corporation has submitted the following sales forecast tor the upcoming fiscal year (all sales are on account): The selling price of the companys product is $18.00...
-
Zachary and Carrie Sexton (the Buyers) were searching for a home in the Kings wood neighborhood of Atlanta, Georgia. The Buyers real estate agent learned that Russell and Linda Sewell (the Sellers)...
-
Lasting Impressions (LI) Company is a medium-sized commercial printer of promotional advertising brochures, booklets, and other direct-mail pieces. The firm's major clients are ad agencies based in...
-
Making Decisions with Confidence Intervals Assume you work for Kimberly Clark Corporation, the makers of Kleenex. The job you are presently working on requires you to decide how many Kleenexes are to...
-
Sketch vo for each network of Fig. 2.177 for the input shown. Would it be a good approximation to consider the diode to be ideal for both configurations? Why? 120 V Si Si E - 20V
-
(ii) Consider the structure of the molecule shown below. Explain how this molecule could cross the plasma membrane and get into cells. CH2OH OH OH OH (iii) If the cell has a higher intracellular...
-
A 2.05-kg particle has a velocity (1.99 -2.99 j) m/s, and a 3.09-kg particle has a velocity (1.06 1 + 6.04 j) m/s. (a) Find the velocity of the center of mass. 1) m/s (b) Find the total momentum of...
-
3. Consider the following divide-and-conquer algorithm that takes as input an array A = {0, ,an), and two indices I and r such that 1
-
Ralph has total income of $ 5 3 0 0 0 . He has business expenses of $ 1 8 0 0 0 , made a $ 5 0 0 0 RRSP contribution and incurred $ 4 0 0 0 in tuition expenses for his daughter, who did not work and...
-
An employee should never use Outlook s Calendar to schedule his or her personal appointments. Write a response that agrees or disagrees with this statement and give your reasons. Part two: An...
-
6. Explain how sum adds the values in the two-dimensional array emissions. int sum( int a[], int n); main() { int emissions [ 10 ][ 5 ], total; total=sum( (int* ) emissions, 50 ); } int sum( int a[...
-
Use the following information from separate companies a through f Net Income (Loss) Interest Expense Income Taxes $163,000 157,600 166, 100 138,550 105,950 (45,640) a. b. C. d. e. f. $76,610 66,192...
-
Reconsider Prob. 1474. In order to drain the tank faster, a pump is installed near the tank exit as in Fig. P1475. Determine how much pump power input is necessary to establish an average water...
-
Verify that a carry-out signal, c k , from bit position k 1 of an adder circuit can be generated as c k = x k y k s k , where x k and y k are inputs and s k is the sum bit.
-
Suppose that the tests w 1 w 2 w 3 w 4 = 0100, 1010, 0011, 1111, and 0110 are chosen randomly to test the circuit in Figure 11.3. What percentage of single faults are detected using these tests? WI...
-
For the timing diagram in Figure P2.4, synthesize the function f (x 1 , x 2 , x 3 ) in the simplest sum-of-products form. X2 X3 f 0 0 0 Time
-
A single fair die is rolled. Let the event \(A\) be the face showing is even. Let the event \(B\) be the face showing is divisible by 3 . (a) List out the sample space of the experiment. (b) List the...
-
Two fair dice, one red and one green, are rolled. Let the event \(A\) be the sum of the faces showing is an even number. Let the event \(B\) be the sum of the faces showing is divisible by 3 . (a)...
-
Two fair dice, one red and one green, are rolled. Let the event \(A\) be the sum of the faces showing is equal to seven. Let the event \(B\) be the faces showing on the two dice are equal. (a) List...
Study smarter with the SolutionInn App