You are on page 1of 3

1.

Create a database using the name “Premire_Product”


2. Using “Premire_Product” database, create a table and name it “Sales_Rep”. Sales_no,
lastname, Firstname, Street, City,State, Zipcode, Commission Rate.
3. Add a sale rep to the Sales_Rep” table. Her number is 12. Her name is Ann Crane and her
address is 123 Street, Insein, Yangon, 95 and her commission rate is 8.5.
4. Using “Premire_Product” database, create a table and name it “Customer”.Cust_no,
lastname, Firstname, Street, City,State, Zipcode, Balance, Credit_limit and Sales_no.
5. Add a customer to the “Customer” table. His number is 11. His name is John Carter and his
address is 23 Street, Mayangone, Yangon, 95 and the balance for this customer is $818.75,
the limited credit is $1000 and he is represented by sale rep “ Ann Crane”.
6. Add a sale rep to the Sales_Rep” table. Her number is 10. Her name is Mary Jones and her
address is 13 Street, Hlaing, Yangon, 95 and her commission rate is 3.5.
7. Add a sale rep to the Sales_Rep” table. Her number is 11. Her name is Susan Ann and her
address is 3 Street, Bahan, Yangon, 95 and her commission rate is 5.5.
8. Add a customer to the “Customer” table. His number is 101. His name is John Smith and
his address is 23 Street, Yankin, Yangon, 95 and the balance for this customer is $18.75, the
limited credit is $1500 and he is represented by sale rep “ Mary Jones”.
9. Add a customer to the “Customer” table. Her number is 122. Her name is Diaz Miguel and
her address is 23 Street, Kamayut, Yangon, 95 and the balance for this customer is $518.75,
the limited credit is $800 and she is represented by sale rep “ Susan Ann”.
1. List the number and name of all customers whose credit limit is $1000.
2. Give the part number, description and on hand value(units on hand X price) for
each part in item class AP.
3. Find the number and name of all sales reps who represents any customer with a
credit limit of $1000.
4. Find the total of the balances for all customers represented by sales rep 12.
5. List the number and name of all customers who are represented by Mary Jones.
6. List the number and name of all customers who are represented by sales rep 03 or
whose credit limit is $ 1000.
7. Find out how many customers have a credit limit of $1000.
8. Find the number and name of all customers whose last name is Nelson.
9. Give the order numbers of those orders placed by customer 124 on September
5,2001.
10.List the number and name of all customers who are represented by sales rep 03
and whose credit limit is $ 1000.
11.List all information from part table concerning part BT04.
12.List the order number, order date, customer number and name for each order
placed by any customer represented by the sales rep whose last name is Jones.
10. List the name of all customer.
11. Find the last name for customer 122.
12. Find the customer number of any customer whose last name is Smith.
13. Show the name and commission rate of all sales rep.
14. Change the first name of customer 101 to Wil.
15. Delete the customer whose number is 122.
16. Adding a column “ email” to Customer Table.
17. Delete the Column “Zipcode” in Sales_Rep.

You might also like