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
2 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]2 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
You have been assigned to design an open cylindrical storage tank 4 meters tall with a diameter of 8 meters to be made out of A-
Katen [24]

Answer:

The required wall thickness is 1.506 \times 10^{-3} m

Explanation:

Given:

Fluid density \rho = 1200 \frac{kg}{m^{3} }

Diameter of tank d = 8 m

Length of tank l = 4 m

F.S = 4

For A-36 steel yield stress \sigma = 250 MPa,

Allowable stress \sigma _{allow} = \frac{\sigma}{F.S}

 \sigma _{allow} = \frac{250}{4} = 62.5 MPa

Pressure force is given by,

 P = \rho gh

 P = 1200 \times 9.8 \times 4

P = 47088 Pa

Now for a vertical pipe,

\sigma _{allow} = \frac{Pd}{4t}

Where t = required thickness

 t = \frac{Pd}{4 \sigma _{allow} }

 t = \frac{47088 \times 8 }{4 \times 62.5 \times 10^{6} }

t = 1.506 \times 10^{-3} m

Therefore, the required wall thickness is 1.506 \times 10^{-3} m

8 0
3 years ago
The air contained in a room loses heat to the surroundings at a rate of 60 kJ/min while work is supplied to the room by computer
charle [14.2K]

Answer:

The net amount of energy change of the air in the room during a 10-min period is 120 KJ.

Explanation:

Given that

Heat loss from room (Q)= 60 KJ/min

Work supplied to the room(W) = 1.2 KW = 1.2 KJ/s

We know that  1 W = 1 J/s

Sign convention for heat and work:

1. If heat is added to the system then it is taken as positive and if heat is rejected from the system then it is taken as negative.

2. If work is done by the system then it is taken as positive and if work is done on the system then it is taken as negative.

So

Q = -60 KJ/min

In 10 min Q = -600 KJ

W = -1.2 KJ/s

We know that

1 min = 60 s

10 min = 600 s

So   W = -1.2 x 600 KJ

W = -720 KJ

WE know that ,first law of thermodynamics

Q = W + ΔU

-600  =  - 720 + ΔU

ΔU = 120 KJ

The net amount of energy change of the air in the room during a 10-min period is 120 KJ.

4 0
3 years ago
Read 2 more answers
The device whose operation closely matches the way the clamp-on ammeter works is
Ivanshal [37]

Answer:

The answer is

C. Split phase motor

Explanation:

Clamp meters rely on the principle of magnetic induction to make non contact AC current measurements. Electric current flowing through a wire produces a magnetic field.

Which is similar to basic mode of operation of electric motor and split phase motor is a type of electric motor.

What is a a clamp on meter?

Clamp meters are electrical testers which have wide jaws that are able to clamp around an electrical conductor. Originally designed as a single purpose tool for measuring AC current, clamp meters now include inputs for accepting test leads and other probes that support a wide range of electrical measurements, the jaws of a clamp meter permit work in tight spaces and permits current measurements on live conductors without circuit interruption.

6 0
3 years ago
Using an "AND" and an "OR", list all information (Equipment Number, Equipment Type, Seat Capacity, Fuel Capacity, and Miles per
Tomtit [17]

Answer:

Explanation :

The given  information to be listed can are Equipment Number, Equipment Type, Seat Capacity, Fuel Capacity, and Miles per Gallon.

Check the attached document for the solution.

5 0
2 years ago
Hello, how are you? ​
Kisachek [45]

Answer:

Hello, I'm good. Thank you for asking

8 0
2 years ago
Read 2 more answers
Other questions:
  • When a mesh in a circuit contains an independent or dependent current source, this leads to a special case of mesh-current analy
    14·1 answer
  • What is pixel's intensity ?​
    8·1 answer
  • QUESTIONS
    12·1 answer
  • Calculate the number of vacancies per cubic meter for some metal, M, at 749°C. The energy for vacancy formation is 0.86 eV/atom,
    5·1 answer
  • a digital multimeter is set to read dc volts on the 4 volt scale the meter leads are connected to a 12 volt battery what will th
    14·2 answers
  • Question 3 (5 points)
    7·1 answer
  • When do you need to apply for program completion and review?
    11·1 answer
  • The cylinder C is being lifted using the cable and pulley system shown.
    8·1 answer
  • Technician A says power steering pumps can be engine driven. Technician B says power steering
    9·1 answer
  • HELP _7. All of the following except which would lead to an INCREASE in friction?
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!