Unit 5 - Assignment
Unit 5 - Assignment
ASSIGNMENT DETAILS
Advanced Multiple Table Queries
Unit Outcomes:
Course Outcome:
Purpose
Assignment Instructions
This assignment includes multiple table queries using the sample databases
attached to the SQL Server implementation installed in Unit 1. Remember to add
the personalized comment as noted at the beginning of Unit 1 before each of
your answer submissions of SQL code and corresponding result set. Failure to
include the required comment with each question will result in a grade of zero.
Assignment Requirements
Remember to make sure the correct database is active before executing a SQL
query.
Also, review the university policy on plagiarism. If you have any questions,
please contact your professor.
1
1. Provide a result set of the customers’ first and last name and their phone
number for all customers who have ordered clothing. Make sure duplicate
values are not included in the result set.
2. Provide a result set of the product’s name and quantity on hand for all
products that have not been ordered.
3. Provide a result set of the employees’ first and las name for all employees
that have sold accessories. Be sure not to include duplicates in your result
set. Sort the result set in alphabetical order by employee last name.
4. Provide a result set of the product’s name and description for all products
ordered by a vendor that has a name that has ‘bike’ somewhere in their
name.
5. Provide the name of the product that is the most expensive we sell which
is purchased from ProFormance.
6. Provide a result set of the product names we sell that are purchased from a
vendor that does not have a Web page.
7. Provide a result set of the vendor name of all the vendors that sell us
products that are bikes.
1. Provide a result set of all the entertainer’s stage name and the count of
the entertainer’s engagements.
2. Provide a result set of all the customer’s first and last name that have a
preference for salsa, and have booked an engagement. Make sure there is no
duplicate values in the result set.
3. Provide a result set of entertainer’s stage name who have played an
engagement for customers from Bellevue. Make sure there are no duplicate
values in the result set.
4. Provide a result set of the entertainer’s stage name for all entertainers
who have not been booked to an engagement.
1. Provide a result set of all the first and last names of the staff members
and the count that each teaches.
2. Provide the first and last name of the students enrolled in a class that
begins at 11 am. Sort the result set by student’s last name in alphabetical
order.
3. Provide a result set of all the first and last names of the faculty who teach
in a classroom without a phone being available. Make sure there are no
duplicate values in the result set.
4. Provide a result set of all student’s first and last names that attend a
class in a classroom that has a capacity > 80.
1. Provide a result set of the first and last name of the bowlers with a count
of the games each bowled.
2
2. Provide a result set of the first and last name of the bowlers that have
bowled a game with a raw score of 200 or more. Please remove duplicates
from the result set, and sort the result set in alphabetical order by last name.
3. Provide a result set of the team name and a count of the number of
matches the team has won.
1. Provide a result set of the types of recipes and the count of recipes in
each type. Sort the result set in descending alphabetical order.
2. Provide a result set of the recipe titles for all recipes that have any of
their measurements that use ‘to taste’.
Name your Assignment document according to this convention: First and Last
Name (use your own name of course). Submit your completed Assignment to
the Unit 5 Dropbox by the deadline.