In the following exercises, you will use the data in the TAL Distributors database shown in Figure

Question:

In the following exercises, you will use the data in the TAL Distributors database shown in Figure 2-1. (If you use a computer to complete these exercises, use a copy of the TAL Distributors database so you will still have the original data when you complete Chapter 3.) In each step, use QBE to obtain the desired results. You can use the query feature in a DBMS to complete the exercises using a computer, or you can simply write a description of how you would complete the task. Check with your instructor if you are uncertain about which approach to take.
1. List the number and name of all customers.
2. List the complete Item table.
3. List the number and name of all customers represented by rep 15.
4. List the number and name of all customers that are represented by rep 15 and that have a credit limit of $10,000.
5. List the number and name of all customers that are represented by rep 15 or that have a credit limit of $10,000.
6. For each order, list the order number, order date, number of the customer that placed the order, and name of the customer that placed the order.
7. List the number and name of all customers represented by Megan Gradey.
8. How many customers have a credit limit of $15,000?
9. Find the total of the balances for all customers represented by rep 30.
10. Give the item number, description, and on-hand value (OnHand * Price) for each item in category GME.
11. List all columns and all records in the Item table. Sort the results by item description.
12. List all columns and all records in the Item table. Sort the results by item number within category.
13. List the category and the sum of the items on hand. Group the results by category.

14. Create a new table named Toy to contain the columns ItemNum, Description, OnHand, and Price for all rows on which the category is TOY.
15. In the Toy table, change the description of item DL51 to €œClassic Train Set.€
16. In the Toy table, delete every row on which the price is greater than $120.
17. There are two ways to create the query in Exercise 11. What are they? Which one did you use?
18. An employee of TAL Distributors created the query shown in Figure 2-45. She wants to list each order and the number of items in the order. Will the query results be correct? If not, how should she modify the query to achieve this result?


Figure 2-1

Rep State PostalCode Commission Rate RepNum LastName FirstName Street Campos Gradey Tian City Rafael 724 Vinca Dr. Grove

Figure 2-45

Count query Orderline Orders 9 Ordert kum 9 Ordertkum 9mentum OrdeDate NumOriterad Customentium Quatedhrice Field Ordert

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Concepts of Database Management

ISBN: 978-1285427102

8th edition

Authors: Philip J. Pratt, Mary Z. Last

Question Posted: