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

  Steps in the mechanism for the following reaction

Show all the steps in the mechanism for the following reaction, When benzene is mixed with deuterated sulfuric acid, deuterium is slowly incorporated onto the ring. Show the mechanism for this reaction and explain how this relates the sulfonation of ..

  Prior to placing piece of metal into the graduated cylinder

This assignment inhibits chemistry Laboratory Questions.

  Write the structures of the saytzeff elimination

Write the structures of the saytzeff elimination

  Calculate ph - chemistry questions

Chemistry Questions on Calculate P H

  How many mols of hydrogen can produce

how many mols of H 2 can produce

  Analysis of corrosion mechanisms

Analysis of corrosion mechanisms and preventative measures

  Chemical and pharmaceutical science

Write an equation for the formation of an acetal from reaction of excess methanol with benzaldehyde in the presence of an acid catalyst.

  Calculate the approximate sulphur

Calculate the approximate SO 2 mass emission in lb/day.

  What is the structure - stereochemistry

What is the structure (including functional groups)? Stereochemistry (racemic or single enantiomer)?

  Design a qualitative analysis scheme

Design a qualitative analysis scheme

  What will be the resultant pressure

What will be the resultant pressure when the stopcock is opened?

  The 1h nmr spectrum

Integrals for some of the resonances in the 1H NMR spectrum are higher than they should be due to the shear number of hydrogens in this compound

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