Purchase Solution

Formation Of SQL Queries And Displaying Data In Views

Not what you're looking for?

Ask Custom Question

See attach file for details and charts.

1. Define a view named CustOrder. It consists of the customer number, name, balance, order number, and order date for all orders currently on file. Explain how you would use SQL to obtain the desired results. Display the data in the view.

2. Create a view named OrdTot. It consists of the order number and order total for each order currently on file. (The order total is the sum of the number ordered multiplied by the quoted price on each order line for each order.) Explain how you would use SQL to obtain the desired results. Display the data in the view.

Purchase this Solution

Solution Summary

This solution helps with a problem regarding SQL queries.

Solution Preview

Please see the attached file for the solution.

Rep_Num Last_Name First_Name Street City State Zip Commission Rate
20 Kaiser Valerie 624 Randall Grove FL 33321 $20,542.50 0.05
35 Hull Richard 532 Jackson Sheldon FL 33553 $39,216.00 0.07
65 Perez Juan 1626 Taylor Fillmore FL 33336 $23,487.00 0.05
Premiere Products Database
Table: Rep

Table: Customer

CustomerNum CustomerName Street City State Zip Balance CreditLimit
148 Al's Appliance and Sport 2837 Greenway Filmore FL 33336 $6,550.00 $7,500.00
282 Brookings Direct 3827 ...

Purchase this Solution

Free BrainMass Quizzes
Basic UNIX commands

Use this quiz to check your knowledge of a few common UNIX commands. The quiz covers some of the most essential UNIX commands and their basic usage. If you can pass this quiz then you are clearly on your way to becoming an effective UNIX command line user.

C++ Operators

This quiz tests a student's knowledge about C++ operators.

Word 2010: Tables

Have you never worked with Tables in Word 2010? Maybe it has been a while since you have used a Table in Word and you need to brush up on your skills. Several keywords and popular options are discussed as you go through this quiz.

Word 2010: Table of Contents

Ever wondered where a Table of Contents in a Word document comes from? Maybe you need a refresher on the topic? This quiz will remind you of the keywords and options used when working with a T.O.C. in Word 2010.

C# variables and classes

This quiz contains questions about C# classes and variables.