You are on page 1of 5

MIS 4300.

502
Group 11:
Alexandra Pollock-Jenkins
Dorcas Sipoche
Imelda Garcia

HW7: Project 7.3


Part A (from Project Manual)
1. I want detailed sales records that include salesperson name, product number,
and quantity sold. Rank the sales by quantity, lowest to highest.

2. I want a full list of customer names in customer number order. For each
customer, I want the name of the assigned salesperson and the headquarters city.

"3. I want a full list of customer names. For each customer, I want the name of the
assigned salesperson. I also want the names and titles of any customer employees.
I need this list in salesperson order, by name. (Tip: This requires an outer join.)

4. Why does this query return more rows than the one in question 2.?
Query #3 returns 15 rows, while Query #2 only returns 9 rows. This is
because Query #3 requests that each customer account be separated out to
display every employee and salesperson that is working with them, which is
many. Query #2 only requests the headquartered city for each customer
account, which, by definition, can only be one per account.

5. I want a list of salespersons, last name only, and office sizes for each. I want the
offices from smallest to largest.

6. Give me a list of customer names for customers who do not have employees on
file.

All customers have employees on file.

7. I need a list of salesperson numbers with the number of customers assigned to


each. Include all salespersons and label the count as Total.

8. Get me an alphabetical company phone list Name, Office number, and


Extension. Make sure that theyre labeled that way, too!

You might also like