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
How frequently should vehicle registration be renewed?
sergeinik [125]

Answer:

When the renewal period comes around (with respect to the license expiry date).

Explanation:

5 0
2 years ago
A company, studying the relation between job satisfaction and length of service of employees, classified employees into three le
Wewaii [24]

Answer:

Below see details

Explanation:

A) It is attached. Please see the picture

B) First to calculate the overall mean,  

μ=65∗25/75+80∗25/75+95∗25/75  

μ=65∗25/75+80∗25/75+95∗25/75 = 80

Next to calculate E(MSTR) = σ2+(1/r−1) ∑ni(μi−μ)^2 = 5634

And E(MSE) = σ^2= 9

C) Yes, it is substantially large than E(MSE) in this case.

D) If we sampled 25 employees from each group, we are likely to get a F statistics to indicate differences of job satisfactions among three types of length of service of employees.

3 0
3 years ago
Engineers are designing a cylindrical air tank and are trying to determine the dimensions of the tank. The proposed material for
lana66690 [7]

Answer:

The length of tank is found to be 0.6 m or 600 mm

Explanation:

In order to determine the length, we need to find a volume for the tank.

For this purpose, we use ideal gas equation:

PV  = nRT

n = no. of moles = m/M

Therefore,

PV = (m/M)(RT)

V = (mRT)/(MP)

where,

V = volume of air = volume of container

m = mass of air = 4.64 kg

R = General Gas Constant = 8.314 J/mol.k

T = temperature of air = 10°C + 273 = 283 K

M = molecular mass of air = 0.02897 kg/mol

P = Pressure of Air = 20 MPa = 20 x 10^6 N/m²

V = (4.64 kg)(8.314 J/mol.k)(283 k)/(0.02897 kg/mol)(20 x 10^6 N/m²)

V = 0.01884 m³

Now, the volume of cylindrical tank is given as:

V = 0.01884 m³ = π(Diameter/2)²(Length)

Length = (0.01884 m³)(4)/π(0.2 m)²

<u>Length = 0.6 m = 600 mm</u>

4 0
4 years ago
Design circuits that demonstrate all of the principles listed below. Set up the circuits and take measurements to show that the
Nata [24]

<u>Explanation</u>:

For series

\Delta V=V_{1}+V_{2}+\ldots+V_{n}=I R_{1}+I R_{2}+\ldots+I R_{n}(\text {voltages add to the batter } y)

\(I=I_{1}=I_{2}=I_{n}\) (current is the same)

V=I R(\text {voltage is directly proportional to } R)

R_{e q}=R_{1}+R_{2}+\ldots+R_{n} \quad \text { (resistance increase) }

For parallel

\Delta V=\Delta V_{1}=\Delta V_{2}=\Delta V_{n} \quad(\text { same voltage })

I=I_{1}+I_{2}+\ldots+I_{n}(\text {current adds})

\(I=\frac{\Delta V}{R_{e q}} \quad(R \text { inversal } y \text { proportional to } I)\)

\frac{1}{R_{e q}}=\frac{1}{R_{1}}+\frac{1}{R_{2}}+\ldots+\frac{1}{R_{n}}

3 0
3 years ago
Can someone tell me what car year and model this is please
Arlecino [84]

Answer:

i think 1844

Explanation:

5 0
3 years ago
Read 2 more answers
Other questions:
  • Make sure that the switch is on (if the drill is electric), the chuck key is not removed before you plug in the drill or turn it
    11·2 answers
  • What instrument is used to measure temperature?
    10·1 answer
  • The organic acid, ACOOH, reacts reversibly with the alcohol BOH, to form the ester ACOOB according to the stoichiometric equatio
    6·1 answer
  • The air loss rate for a straight truck or bus with the engine off and the brakes
    11·1 answer
  • A power plant burns natural gas to supply heat to a heat engine which rejects heat to the adjacent river. The power plant produc
    11·1 answer
  • If a and b are both int arrays, then a b; will
    10·1 answer
  • PLEASE HELP AND ANSWER MY OTHER QUESTIONS!,
    7·1 answer
  • Using your knowledge of how an ATM is used, develop a set of use cases that could serve as a basis for understanding the require
    15·1 answer
  • 3. Determine the most unfavorable arrangement of the crane loads and
    6·1 answer
  • When framing a building, a simple way to estimate the total amount of wall studs needed is to allow
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!