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
A four-cylinder, four-stroke internal combustion engine operates at 2800 RPM. The processes within each cylinder are modeled as
Ulleksa [173]

Answer:

1) 287760.4 Hp

2) 18410899.5 kPa

Explanation:

The parameters given are;

p₁ = 14.7 lbf/in² = 101325.9 Pa

v₁ = 0.0196 ft³ = 0.00055501 m³

T₁ = 80°F = 299.8167 K

k = 1.4

Assumptions;

1) Air standard conditions are appropriate

2) There are negligible potential and kinetic energy changes

3) The air behaves as an ideal gas and has constant specific heat capacities of temperature and pressure

1) Process 1 to 2

Isentropic compression

T₂/T₁ = (v₁/v₂)^(1.4 - 1) = 10^0.4

p₂/p₁ = (v₁/v₂)^(1.4)

p₂ = p₁×10^0.4 =  101325.9*10^0.4 = 254519.153 Pa

T₂ = 299.8167*10^0.4 = 753.106 K

p₃ = 1080 lbf/in² = 7,446,338 Pa

Stage 2 to 3 is a constant volume process

p₃/T₃ = p₂/T₂

7,446,338/T₃ =   254519.153/753.106

T₃ = 7,446,338/(254519.153/753.106) = 22033.24 K

T₃/T₄ = (v₁/v₂)^(1.4 - 1) = 10^0.4

T₄ = 22033.24/(10^0.4) = 8771.59 K

The heat supplied, Q₁ = cv(T₃ - T₂) = 0.718*(22033.24 -753.106) = 15279.14 kJ

The heat rejected = cv(T₄ - T₁) = 0.718*(8771.59 - 299.8167) = 6082.73 kJ

W(net) = The heat supplied - The heat rejected = (15279.14 - 6082.73) = 9196.41 kJ

The power = W(net) × RPM/2*1/60 = 9196.41 * 2800/2*1/60 = 214582.9 kW

The power by the engine = 214582.9 kW = 287760.4 Hp

2) The mean effective pressure, MEP  = W(net)/(v₁ - v₂)

v₁ = 0.00055501 m³

v₁/v₂ = 10

v₂ = v₁/10 = 0.00055501/10 = 0.000055501

MEP  = 9196.41/(0.00055501 -  0.000055501) = 18410899.5 kPa

4 0
3 years ago
What are the 5 major forest types?
Nataly [62]

Answer:

1. Equatorial Evergreen or Rainforest

2. Tropical forest

3. Mediterranean forest

4. Temperate broad-leaved forest

5. Warm temperate forest

Explanation:

4 0
4 years ago
Read 2 more answers
6.48 programming project 1: encode/decode tic -tac-toe
natita [175]

Answer:

What do you need help with?

Explanation:

5 0
3 years ago
What are the factors of production in business? Land, labor, and capital land, capital, and interest land, labor, and customer b
kozerog [31]

Answer:

  • <em><u> Land, labor, and capital </u></em>

Explanation:

The <em>factors of production </em>are the resources that are used to produce goods and services.

By definition resources are scarce.

<em>Land</em> includes everything that comes from the land, that can be used as raw material to produce other materials; for instance, water, minerals, wood.

<em>Labor</em>  is the work done by anybody, not just at a factory but at any enterpise that produce a good or a service. For instance, the work done by a person in a bank or a restaurant.

<em>Capital</em> is the facilites (buildings), machinery, equipments, tools that the persons use to produce goods or services. For instance, a computer, a chemical reactor, or a pencil.

Nowadays, also entrepreneurship is included as a <em>factor of production</em>, since it is the innovative skill of the entrepeneurs to combine land, labor and capital what permit the production of good and services.

6 0
4 years ago
Read 2 more answers
Write a iterative function that finds the n-th integer of the Fibonacci sequence. Then build a minimal program (main function) t
Natasha2012 [34]

Answer:

Codes for each of the problems are explained below

Explanation:

PROBLEM 1 IN C++:

#include<iostream>

using namespace std;

//fib function that calculate nth integer of the fibonacci sequence.

void fib(int n){

  // l and r inital fibonacci values for n=1 and n=2;

  int l=1,r=1,c;

 

  //if n==1 or n==2 then print 1.

  if(n==1 || n==2){

      cout << 1;

      return;

  }

  //for loop runs n-2 times and calculates nth integer of fibonacci sequence.

  for(int i=0;i<n-2;i++){

      c=l+r;

      l=r;

      r=c;

      cout << "(" << i << "," << c << ") ";

  }

  //prints nth integer of the fibonacci sequence stored in c.

  cout << "\n" << c;

}

int main(){

  int n; //declared variable n

  cin >> n; //inputs n to find nth integer of the fibonacci sequence.

  fib(n);//calls function fib to calculate and print fibonacci number.

}

PROBLEM 2 IN PYTHON:

def fib(n):

   print("fib({})".format(n), end=' ')

   if n <= 1:

       return n

   else:

       return fib(n - 1) + fib(n - 2)

if __name__ == '__main__':

   n = int(input())

   result = fib(n)

   print()

   print(result)

7 0
3 years ago
Read 2 more answers
Other questions:
  • how to calculate the torque when a force is applied on a cog? explain the step-by-step and provide an illustration/diagram. Can
    15·1 answer
  • Q1. In electronic circuits it is not unusual to encounter currents in the microampere range. Assume a 35 μA current, due to the
    13·1 answer
  • The benefit of using the generalized enthalpy departure chart prepared by using PR and TR as the parameters instead of P and T i
    6·1 answer
  • The water behind Hoover Dam in Nevada is 221 m higher than the Colorado River below it. At what rate must water pass through the
    6·1 answer
  • A plumbed eyewash station is portable.
    8·1 answer
  • The development of various technologies led to many historic events. Use information from the Internet to describe one major his
    5·1 answer
  • Draw the sequence of BSTs that results when you insert the keys E, A, S, Y, Q, U, E, S, T, I, O, N, in that order into an initia
    10·1 answer
  • The coefficient of performance of a reversible refrigeration cycle is always (a) greater than, (b) less than, (c) equal to the c
    12·1 answer
  • Could I please get help with this​
    11·1 answer
  • In multi-grade oil what is W means?
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!