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
Suppose values is a sorted array of integers. Give pseudocode that describes how a new value can be inserted so that the resulti
Novosadov [1.4K]

Answer:

insert (array[] , value , currentsize , maxsize )

{

   if maxsize <=currentsize

  {

      return -1

  }

  index = currentsize-1

  while (i>=0 && array[index] > value)

  {

      array[index+1]=array[index]

      i=i-1

  }

 

  array[i+1]=value

  return 0

}

Explanation:

1: Check if array is already full, if it's full then no component may be inserted.

2: if array isn't full:

  • Check parts of the array ranging from last position of range towards initial range and determine position of that initial range that is smaller than the worth to be inserted.  
  • Right shift every component of the array once ranging from last position up to the position larger than the position at that smaller range was known.
  • assign new worth to the position that is next to the known position of initial smaller component.
7 0
3 years ago
A hair dryer is basically a duct of constant diameter in which a few layers of electric resistors are placed. A small fan pulls
Inessa05 [86]

Answer:

the percent increase in the velocity of air is 25.65%

Explanation:

Hello!

The first thing we must consider to solve this problem is the continuity equation that states that the amount of mass flow that enters a system is the same as what should come out.

m1=m2

Now remember that mass flow is given by the product of density, cross-sectional area and velocity

(α1)(V1)(A1)=(α2)(V2)(A2)

where

α=density

V=velocity

A=area

Now we can assume that the input and output areas are equal

(α1)(V1)=(α2)(V2)

\frac{V2}{V1} =\frac{\alpha1 }{\alpha 2}

Now we can use the equation that defines the percentage of increase, in this case for speed

i=(\frac{V2}{V1} -1) 100

Now we use the equation obtained in the previous step, and replace values

i=(\frac{\alpha1 }{\alpha 2} -1) 100\\i=(\frac{1.2}{0.955} -1) 100=25.65

the percent increase in the velocity of air is 25.65%

6 0
3 years ago
DO you of you guys know about Any Anmial rights it is for a resercah project
gizmo_the_mogwai [7]

Explanation:

Sure! I'll give you the definition to start off-

The right of animals to be free from exploitation, domination and abuse by humans. Free-living Animals & Their Environment; To live free, animals need a place to live. Wildlife Law Program; The Wildlife Law Program focuses on the defense of wildlife and their habitats throughout the world.

Here are some examples of companies for Animal Advocates for inspiration.

PETA – People for the Ethical Treatment of Animals

International Fund for Animal Welfare – IFAW

Cincinnati Zoo & Botanical Garden

Here are some of the basic rights of animals.

- No experiments on animals.

- No breeding and killing animals for food or clothes or medicine.

- No use of animals for hard labor.

- No selective breeding for any reason other than the benefit of the animal.

- No hunting.

- No zoos or use of animals in entertainment.

4 0
3 years ago
HAPPINESS DISCUSSION
RideAnS [48]

Answer:

uh because life sucks o_<

8 0
3 years ago
Read 2 more answers
Because there is a one-to-many relationship between sales reps and customers in the TAL Distributors database, one sales rep can
stiv31 [10]

Answer:

True

Explanation:

The relationship between sales reps and customers is an example of a one-to-many relationship. This is because one sales rep can be associated with many customers but a customer must have one sales rep. It is impossible for a customer to have zero sales rep but this is quite possible for a sales rep to have either zero, one or even more customers. Therefore the statement is True.

7 0
3 years ago
Other questions:
  • Water is the working fluid in a Rankine cycle. Superheated vapor enters the turbine at 8 MPa, 560°C and the turbine exit pressur
    13·1 answer
  • On highways, the far left lane is usually the _____. A. emergency lane B. merge lane C. slowest D. fastest
    9·2 answers
  • An R-134a refrigeration system is operating with an evaporator pressure of 200 kPa. The refrigerant is 10% in vapor phase at the
    15·1 answer
  • What is a magnitute?
    5·2 answers
  • A logic chip used in a computer dissipates 3 W of power in an environment at 120°F, and has a heat transfer surface area of 0.08
    11·1 answer
  • What is the horizontal distance from Point A to toe of slope?
    12·1 answer
  • The specific gravity of a fluid with a weight density of 31.2 lb/ft is a. 2.00 b. 0.969 c. 0.500 d. 1.03
    10·1 answer
  • Nêu đặc điểm của tín hiệu PAM rời rạc dạng lưỡng cực NRZ, RZ
    11·1 answer
  • Porque el invento de la bombilla es importante?
    6·1 answer
  • 10.) A solid circular titanium control rod at 7,000 lb axial tension force where stress must not
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!