Professional Documents
Culture Documents
502
Group 11:
Alexandra Pollock-Jenkins
Dorcas Sipoche
Imelda Garcia
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.