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...
-
Rollins Corporation issued a 5 percent stock dividend on 10,000 shares of its $10 par common stock. At the time of the dividend, the market value of the stock was $14 per share. Required a. Compute...
-
Use a computer program to generate 10 pseudorandom numbers having the standard normal distribution.
-
Convert \(\frac{240}{53}\) to a mixed number. Do the indicated conversion. If it is a repeating decimal, use the correct notation.
-
Dillon Labs has asked its financial manager to measure the cost of each specific type of capital as well as the weighted average cost of capital. The weighted average cost is to be measured by using...
-
Additional Information: Summary of transactions for the year 2020 are as follows: Property, Plant and Equipment (PPE) i. SUSU SEGAR BERHAD uses the straight line method for depreciation. The...
-
Le Roi du Plastique Sarl has two processes extrusion and thermo-assembly. Consider the June 2022 data for physical units in the thermo-assembly process of Le Roi du Plastique: opening work in...
-
Suppose a college offers weekly one-on-one tutoring sessions for students who sign up for it. In an economics course, approximately half the students sign up for the free tutoring. In general,...
-
Jackie's Dance Studio created a $220 imprest petty cash fund. During the month, the fund custodian authorized and signed petty cash tickets as follows: Petty Cash Ticket No. Item Account Debited...
-
Victory Company uses weighted average process costing. The company has two production processes. Conversion cost is added evenly throughout each process. Direct materials are added at the beginning...
-
Billy became frustrated with the waiting time for his permanent residency linked to his Partner Class BS subclass 801 visa. In particular, he feels like it has been impeding his employment...
-
Stash just bought a used Bianchi bicycle through Offerup, which is an app that connects buyers with sellers. Stash is a bike enthusiast who has traditionally only bought new bikes. This time, wanting...
-
What is the future of global trade and how does it affect the US economy and (another country that you'd like to work in someday? Please review the following article...
-
Post your views concerning drug legalization of psychoactive substances in the United States. For example, would you legalize certain psychoactive drugs or all types? Elaborate on the possible...
-
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
-
What would you think about a company whose stock was selling for \($50\) a share in January and \($12\) a share in December?
-
Because a publicly traded company receives money only when its stock is originally issued, why do you think it would care about the stocks market value in the stock market? Assume you own stock in a...
-
When you consider that companies are generally in business to earn a profit, why might it be acceptable to select a capital project that promises a return that is just equal to the weighted average...
Study smarter with the SolutionInn App