0% found this document useful (0 votes)
4 views3 pages

Unit 5 - Assignment

The Unit 5 Assignment focuses on advanced SQL queries involving multiple tables, requiring students to create various types of joins and subqueries. Students must utilize sample databases to answer specific questions related to sales orders, entertainment agencies, school scheduling, bowling leagues, and recipes. The assignment emphasizes the importance of including personalized comments with each SQL submission and adhering to academic integrity policies.

Uploaded by

joshuabperez20
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views3 pages

Unit 5 - Assignment

The Unit 5 Assignment focuses on advanced SQL queries involving multiple tables, requiring students to create various types of joins and subqueries. Students must utilize sample databases to answer specific questions related to sales orders, entertainment agencies, school scheduling, bowling leagues, and recipes. The assignment emphasizes the importance of including personalized comments with each SQL submission and adhering to academic integrity policies.

Uploaded by

joshuabperez20
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Unit 5 Assignment

ASSIGNMENT DETAILS
Advanced Multiple Table Queries

Outcomes addressed in this activity:

Unit Outcomes:

 Create multiple table queries.


 Create outer, left, and right joins.
 Write UNION SQL Queries.
 Write SQL sub queries.

Course Outcome:

IT526-3: Compose Structured Query Language (SQL) queries for database


information analysis.

Purpose

In this Unit 5 Assignment, you will be required to answer Structured Query


Language (SQL) problems involving multiple tables and sub queries. The SQL
techniques you will need to apply are covered within chapters 9, 10, and 11 of
the IT526 class textbook.

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.

Unit 5 Questions: Multiple Table Queries

Use the Sales Order Database

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.

Use Entertainment Agency Database

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.

Use School Scheduling Database

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.

Use Bowling League Database

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.

Use Recipes Database

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’.

Directions for Submitting Your Assignment

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.

You might also like