1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Volgvan
3 years ago
15

James River Jewelry is a small jewelry shop. While James River Jewelry does sell typical jewelry purchased form jewelry vendors,

including such items as rings, necklaces, earrings, and watches, it specializes in hard-to-find Asian jewelry. Although some Asian jewelry is manufactured jewelry purchased from vendors in the same manner as the standard jewelry is obtained, many of the Asian jewelry pieces are often unique single items purchased directly from the artisan who created the piece (the term "manufactured" would be an inappropriate description of these pieces). It has a small but loyal clientele, and it wants to further increase customer loyalty by creating a frequent buyer program. In this program, after every 10 purchases, a customer will receive a credit equal to 50 percent of the sum of his or her 10 most recent purchases. This credit must be applied to the next (or "11th") purchase. Assume that James River designs a database with the following tables. CUSTOMER (CustomerID, LastName, FirstName, Phone, Email) PURCHASE (InvoiceNumber, InvoiceDate, PreTaxAmount, CustomerID) PURCHASE_ITEM (InvoiceNumber, ItemNumber, RetailPrice) ITEM (ItemNumber, Description, Cost, ArtistName) The referential integrity constraints are: CustomerID in PURCHASE must exist in CustomerID in CUSTOMER InvoiceNumber in PURCHASE_ITEM must exist in InvoiceNumber in PURCHASE ItemNumber in PURCHASE_ITEM must exist in ItemNumber in ITEM Assume that CustomerID of CUSTOMER, ItemNumber of ITEM, InvoiceNumber of PURCHASE, and ItemNumber of PURCHASE_ITEM are all surrogate keys with values as follows: CustomerID Start at 1 Increment by 1 InvoiceNumber Start at 1 Increment by 1 ItemNumber Start at 1 Increment by 1 Write SQL statements and answer questions for this database as follows: A. Write SQL CREATE TABLE statements for each of these tables. B. Write foreign key constraints for the relationships in each of these tables. Make your own assumptions regarding cascading deletions and justify those assumptions. (Hint: You can combine the SQL for your answers to parts A and B.) C. Write SQL statements to insert at least three rows of data into each of these tables. Assume that surrogate key column values will be supplied by the DBMS. D. Write SQL statements to list all columns for all tables. E. Write an SQL statement to list ItemNumber and Description for all items that cost more than $100. F. Write an SQL statement to list ItemNumber and Description for all items that cost more than $100 and were produced by an artist with a last name ending with the letters son. G. Write an SQL statement to list LastName and FirstName of customers who have made at least one purchase with PreTaxAmount greater than $200. Use a subquery. H. Answer part G but use a join using JOIN…ON syntax. I. Write an SQL statement to list LastName and FirstName of customers who have purchased an item that costs more than $50. Use a subquery. J. Answer part I but use a join using JOIN…ON syntax K. Write an SQL statement to list LastName and FirstName of customers who have purchased an item that was created by an artist with a last name that begins with the letter J. Use a subquery. L. Answer part K but use a join using JOIN…ON syntax M. Write an SQL statement to show the Name and sum of PreTaxAmount for each customer using JOIN…ON syntax. N. Write an SQL statement to show the sum of PreTaxAmount for each artist (hint: the result will have only one line per each artist). Use a join using JOIN…ON syntax, and sort the results by ArtistLastName in ascending order. O. Write an SQL statement to show the sum of PreTaxAmount for each ArtistName but exclude any items that were part of purchases with PreTaxAmount less than $25. Use a join using JOIN…ON syntax, and sort the results by ArtistLastName in descending order. P. Write an SQL statement to show which customers bought which items, and include any items which have not been sold. Includes CUSTOMER.LastName, CUSTOMER.FIRSTName, InvoiceNumber, InvoiceDate, ItemNumber, ItemDescription, ArtistLastName, and ArtistFirstName. Use a join using JOIN…ON syntax, and sort the results by ArtistLastName and ArtistFirstName in ascending order. Q. Write an SQL statement to modify all ITEM rows with an artist last name of Baxter to an artist first name of Rex. R. Write SQL statements to switch the values of ArtistLastName so that all rows currently having the value Baker will have the value Baxter, and all rows currently having the value Baxter will have the value Baker.

Engineering
1 answer:
Sveta_85 [38]3 years ago
7 0

Answer:

This question is comprising many parts (a to r). That is impossible to answer in one sheet. Following are attached images having answers to most of the parts.

I hope it will help you a lot.

Explanation:

You might be interested in
Briggs & Stratton engines feature both a pressure lubrication and a pressure filtration system. Which statement is true?
Andreyy89
Answer would be Letter B
7 0
3 years ago
Suppose that the cost of electrical energy is $0.15 per kilowatt hour and that your electrical bill for 30 days is $80. Assume t
mr_godi [17]

Answer:

a) 740 W b) 6.2 A c) 8.1%

Explanation:

We need first to get the total energy spent during the 30 days, that can be calculated as follows:

1 month = 30 days = 720 hr

If the total cost amounts $80 (for 720 hr), and the cost per kwh is 0.15, we have:

80 $/mo  =  0.15 $/Kwh*x Kwh/mo

Solving for the total energy spent in the month:

x (kwh/mo) = \frac{80}{0.15} = 533.3 kwh

Assuming that the power delivered is constant over the entire 30 days, as power is the rate of change of energy, we can find the power as follows:

P = \frac{E}{t} = \frac{533.3 kWh}{720 h}  = 0.74 kW = 740 W

b) If the power is supplied by a voltage of 120 V, we can find the current I as follows:

I =\frac{P}{V} =\frac{740W}{120V} = 6.2A

c) If part of the electrical load is a 60-W light, we can substract this power from the one we have just found, as follows:

P = 740 W - 60 W = 680 W

The new value of the energy spent during the entire month will be as follows:

E = 0.68 kW*24(hr/day)*30(days/mo) = 490 kWh/mo

The reduction in percentage regarding the total energy spent can be calculated as follows:

ΔE = \frac{533.3-490}{533.3} = 0.081*100= 8.1%

⇒ ΔE(%) = 8.1%

%(E) =\frac{533.3-490}{533.3}  = 0.081 * 100 = 8.1%

4 0
4 years ago
How many ticks are in a inch?<br><br><br> A: 12<br> B: 10<br> C: 8<br> D: 16
slamgirl [31]

Answer:

16

Explanation:

since each tick is 1/16 of the inch, there will be 16 ticks

4 0
3 years ago
You are evaluating a variety of new materials for use in the femoral stem of a hip joint replacement.
Lisa [10]

Answer:

a

Explanation:

5 0
3 years ago
A 60 mm radium drum is rigidly attached to a 100 mm radius drum as shown. One of the drum rolls without sliding on the surface s
Sliva [168]

The acceleration at points A, B and C are respectively; 960 mm²/s, 1600 mm²/s and 600 mm²/s

<h3>What is the acceleration?</h3>

The drum rolls without sliding and as such its' instantaneous center will lie at B. Thus;

V_d = V_c = 160 mm/s

Also, a_d = a_c = 600 mm²/s

Now, formula for velocity at A is;

V_a = r_ab * ω

where ω = 160/(100 - 60)

ω = 4 rad/s

V_a = 60 * 4

V_a = 240 mm/s

Acceleration at A = V_a²/r_ab

Acceleration at A = 240²/60 = 960 mm²/s

Now, V_b = 100 * 4 = 400 mm/s

Acceleration at B = 400²/100 = 1600 mm²/s

Read more about Acceleration at; brainly.com/question/14344386

6 0
2 years ago
Other questions:
  • Your driver license will be _____ if you race another driver on a public road, commit a felony using a motor vehicle, or are fou
    6·2 answers
  • Liberty Autos recognizes that it has some customers who like roomy SUVs, while others like more compact versions. Liberty design
    15·1 answer
  • In an experiment, one selected two samples of copper-silver alloy. One sample has 40 wt% of silver and 60wt% of copper and the o
    13·1 answer
  • Implement the function F(A, B, C, D) = Σm(1, 2, 3, 4, 6, 9, 12, 13, 15) as a minimal hazard-free SOP circuit. In your solution,
    11·1 answer
  • An aggregate blend is composed of 65% coarse aggregate by weight (Sp. Cr. 2.635), 36% fine aggregate (Sp. Gr. 2.710), and 5% fil
    5·1 answer
  • Explain why many sustainable fishing and forestry practice depend on the actions of consumers like you.
    13·2 answers
  • TIMED TEST!!!!!!!!!!!!What process that occurred in the Midwestern United States in the 1930s is now occurring in the Sahel regi
    5·1 answer
  • Ok there........................................................................
    12·1 answer
  • Will mark brainliest if correct
    11·1 answer
  • I have a question.What does DIY mean?
    6·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!