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
Tadpoles raised in water with atrazine levels of 0.1 ppb should produce a higher percentage of male frogs with gonadal abnormali
Kobotan [32]

Answer:

correct option is c. a testable prediction leading to design of an experiment

Explanation:

The results of raising tadpoles were estimated to be water with an atrazine level of 0.1 ppb compared to those grown in pure water. So, this is not the question. If this assumption can now be tested, an experiment can be made in which a certain number of tadpoles can be raised in pure water and the same number of tadpoles can be raised in water with a 0.1ppb atrazine level can. The difference between the two populations can be estimated or compared.

8 0
3 years ago
Select the correct answer.
olya-2409 [2.1K]

Answer:

screw is the answer of the question

6 0
3 years ago
Read 2 more answers
Takt time is the rate at which a factory must produce to satisfy the customer's demand. a)- True b)- False
laila [671]

Answer: a)True

Explanation: Takt time is defined as the average time difference between  the production of the two consecutive unit of goods by the manufacturer and this rate is matched with the demand of the customer. This is the time which is calculated to find the acceptable time for which the goods unit must be produced  by the factory to meet the needs of the customer. Therefore , the statement is true that takt time is the rate at which a factory must produce to satisfy the customer's demand.

6 0
3 years ago
The velocity of a particle which moves along the s-axis is given by = 40 − 3 2/ , ℎ t is in seconds. Calculate the displacement
scoundrel [369]

The displacement ∆S of the particle during the interval from t = 2sec to 4sec is; 210 sec

<h3>How to find the displacement?</h3>

We are given the velocity equation as;

s' = 40 - 3t²

Thus, the speed equation will be gotten by integration of the velocity equation to get;

s = ∫40 - 3t²

s = 40t - ¹/₂t³

Thus, the displacement between times of t = 2 sec and t = 4 sec is;

∆S = [40(4) - ¹/₂(4)³] - [40(2) - ¹/₂(2)³]

∆S = 210 m

Read more about Displacement at; brainly.com/question/4931057

#SPJ1

8 0
2 years ago
Voltage drop testing is being discussed.
Airida [17]

Answer:

Technician B only is correct

Explanation:

Voltage drop testing is a method used to find the amount of electrical resistance available in an high amperage circuit that involves connecting the leads of the meter in parallel to the circuits being tested such that disassembly is not required

In voltage drop test, the red voltmeter lead and black voltmeter lead are placed at two points on the same side of the circuit connection such that the leads are in between two positive connection or two negative connection (rather than connecting the red to the positive and the black to the negative sides of the circuit) and digital voltmeter is used for the voltage drop measurement across the lead while the connection is under load.

Therefore, Technician B only is correct

8 0
3 years ago
Other questions:
  • A well pumps at 400 L/s from a confined aquifer whose thickness is 24 m. If the drawdown 50 m from the well is 1 m and the drawd
    10·1 answer
  • Write a new ARMv8 assembly file called "lab04b.S" which is called by your main function. It should have the following specificat
    13·1 answer
  • 6. PVC boxes are primarily used in new construction because it is simple to
    11·1 answer
  • An air conditioner using refrigerant-134a as the working fluid and operating on the ideal vapor-compression refrigeration cycle
    7·2 answers
  • A long bone is subjected to a torsion test. Assume that the inner diameter is 0.375 in. and the outer diameter is 1.25 in., both
    14·1 answer
  • Using the data from the table, what is P(3)?!
    9·1 answer
  • What have you learned from the previous lesson? Let's try to check your prior knowledge
    9·1 answer
  • The van der Waals equation is a modification of the ideal gas equation. What two factors does this equation account for? A. (1)
    6·1 answer
  • The minimum recommended standards for the operating system, processor, primary memory (RAM), and storage capacity for certain so
    12·2 answers
  • Does anyone know how to fix this? It's a chromebook and project where I have to try to fix it​
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!