Write the sql command to complete each step

Assignment Help Chemistry
Reference no: EM13856315

Write the SQL command to complete each step.

Create a database with two tables: Customers (Cust_ID, First, Last, Balance, CreditLimit, Rep_ID) and Sales_Rep (Rep_ID, Rep_First, Rep_Last, Per_Hour). For simplicity, use Short text for data type except when you can use currency.

1.  List the Cust_IDs and names of all customers.

2.  List the Cust_Id and name of every customer represented by sales rep 35.

3.  List the number and name of all customers that are represented by sales rep 35 and that have credit limits of $10,000.

4.  List the number and names of all customers represented by a rep whose last name starts with Per.

5.  Find the total and average balances for all customers

6. List all customer last names whose balance is above the credit limit.

7. Calculate the total weekly wages if all sales reps are working for 40 hrs. per week.

8. Add a new customer (45, Jim, Jones, 4000, 5000, 35)

 9. List all customer last names corresponding with the last names of their sales reps, sorted by customer last names in ascending order.

10. Update the customer's last name to Newlywed if the Cust_ID is 282

Reference no: EM13856315

Questions Cloud

A description of the technology : 1) A  description of the technology 2) describe challenges that Googlecould face in implementing this technology 3) suggestions for overcoming someof the potential challenges and obstacles
The relationship database for the lucky rent-a-car : The relationship database for the lucky Rent-A-Car example described earlier. There is a one- to-many relationship from manufacturers to cars and another one- to- many relationship from cars to maintenance events. The former requires the manufact..
What is the value of infix expression 5 : a. What is the value of infix expression 5 + (4 - 2 * 3 ) * 5 + 6 ?  b. Show step by step (draw it out) to change the above infix expression to postfix expression using a Stack, you need to show the contents of stack and Output
Types of knowledge-based decision support systems : Applying change management theory to discuss the integration of one of the four types of knowledge-based decision support systems
Write the sql command to complete each step : Write the SQL command to complete each step. Create a database with two tables: Customers (Cust_ID, First, Last, Balance, CreditLimit, Rep_ID) and Sales_Rep (Rep_ID, Rep_First, Rep_Last, Per_Hour). For simplicity, use Short text for data type except ..
Blue-ocean strategy-merger and acquisition : A blue-ocean strategy: All firms are subject to offensive challenges from rivals. The intent of the best defensive move is to: What does the scope of the firm refer to? The difference between a merger and an acquisition relates to: What outcomes do h..
Explain what he saying here about he aim of yoga : A short quotation from Sri Aurobindo appears on p. 92 of Religions of Asia Today. Explain what he's saying here about he aim of yoga, especially the relationship between personal experience and universal Truth
Accounting for share transactions : The shareholder's equity section of the consolidated balance sheet of CompX international appeared as follows at the beginning of the year:
Data and images : Lossless and lossy are the two (2) universally known categories of compression algorithms. Compare the two (2) categories of algorithms, and determine the major advantages and disadvantages of each. Provide one (1) example of a type of data for which..

Reviews

Write a Review

Chemistry Questions & Answers

  Lysozyme is an enzyme that breaks bacterial cell walls a

lysozyme is an enzyme that breaks bacterial cell walls. a solution containing .150 g of the enzyme in 210 ml of

  Define what is the concentration of the naoh solution

what is the concentration of the NaOH solution. The balanced equation is: 2 NaOH(aq) + H2C2O4(aq)  Na2C2O4(aq) + 2 H2O(l)

  What was the molarity of the permanganate solution

Question- Iron is often utilized to standardize permanganate solutions. A 0.158 g sample of pure iron wire was dissolved in dilute sulfuric acid to form a solution of iron (ii) sulfate. This was titrated with 31.23 ml of potassium permanganate sol..

  Define gasoline currently powers the majority of automobiles

Gasoline currently powers the majority of automobiles in the U.S. but electric cars have been touted as a way to reduce our dependence on gasoline as well as improve our air quality by reducing production of byproducts associated with gasoline com..

  Compute the temperature a star must have for the peak

Using Wien's law, calculate the temperature a star must have for the peak wavelength of its blackbody curve to equal this value.

  What would be the new pressure in the gas

if a sample of gas is at 2 atm and is at 15 degrees celsius, what would be the new pressure in the gas if the gas is heated to 100 degrees celcius?

  What is the identity of the gas

A pure gas sample at room temperature (25 C) has an average molecular speed of 682 m/s. What is the identity of the gas.

  State what mass of solid sodium hypochlorite

What mass of solid sodium hypochlorite (molar mass = 74.44 g/mol) should be added to 1.0 L of 0.255M hypochlorous acid to make a buffer with a pH of 7.54? (Ka of HClO = 3.8 x 10-8)

  Define what volume will the gases expand against a constant

Consider a mixture of air and gasoline vapor in a cylinder with a piston. The original volume is 40. cm3. If the combustion of this mixture releases 860. J of energy, to what volume will the gases expand against a constant pressure of 650

  State calcium cyanamide reacts with water to form ammonia

Calcium cyanamide, CaCN2, reacts with water to form calcium carbonate and ammonia; CaCN2(s)+3H2O(l)-->CaCO3(s)+2NH3(g). a) How many grams of water are needed to react with 75.0 g of CaCN2

  Define the values of km and vmax

Are the values of Km and Vmax obtained from LinearWear Burk Plot larger or smaller than those obtained from Michaelis Menten Plot. Explain why

  Explain dimethoxubenzene with tert-butyl alcohol

what would be the product if you reacted 1,3-dimethoxubenzene with tert-butyl alcohol?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd