You are on page 1of 1

MISY330 Assignment 6

Please provide SQL queries for all of the following questions. You should use the University
database that we used in class. Your submission document should contain both your SQL queries
and results for each question (In MySQL workbench menu on the top of the interface, select
“Query” and then select “Execution (All or Selection) to Text”, so that you can copy and paste
the results table returned). If some of your queries cannot run through, you still need to include
these queries in your submission for grading. Paste the queries and results to a word document
named as “FirstNameLastNameAssignment6.docx” and submit this document to Canvas.
1. List student Bob Norbert’s course schedule in spring 2003. For each course, list the
offering number, course number, days, location, time, and faculty name.

2. List faculty members who have a higher salary than their supervisor. List the social
security number, name, and salary of the faculty and supervisor.

3. List the names of faculty members and the course number for which the faculty member
teaches the same course number as his or her supervisor in 2003.

4. For each of the IS course offerings, list the course number, offering number, the first and
last name of the faculty who is assigned to this offering, as well as the first and last name
of the supervisor of this assigned faculty. Including the offering and faculty information
even if the offering has no assigned faculty and/or the faculty has no supervisor. [Hint:
10 rows will be retrieved.]

5. Using a Type I and Type II nested query, list the courses (CourseNo, CrsDesc) that were
NOT offered in summer.

a. Type I
b. Type II

6. Using a Type II nested query, retrieve a list of courses (list their course number and
course description) that were not offered in winter 2003.

You might also like