Others
Assessment
CenterForComputing
ChatGPT
Search
Close
Log in
Register
CenterForComputing
You are here:
CenterForComputing
»
Syllabi
»
CSC330S2020Syllabus
»
CSC330S2020MultipleSQLLab
Multiple Table SQL Lab
Overview
Use the data in the course, etc. tables
Turn in a soft copy (a .sql file with just the sql statements and comments) Be sure to label each statement/answer
When dealing with majors, you only need deal with major1. If you want to add major2, that is a lot of work and is extra credit
Questions
Part 1 (using only joins)
Display the title of each course you were enrolled in last semester
Display the student id numbers of each of the students that you shared a class with last semester (no duplications)
Display the names of each of the students that you shared a class with last semester (no duplications)
Display the all the rooms associated with the classes you took last spring
Find the names of all the instructors teaching in the Religion and Philosophy department last year.
Find the names of all the instructors who have taught a course with the same course code as anyone who taught ENGL 101 last fall.
Display your schedule from last fall
Display the name, email, and major of all students currently majoring in one major of your choice.
Part 2 (using only nested queries and
NO
joins)
Display the title of each course you were enrolled in last semester
Display the student id numbers of each of the students that you shared a class with last semester (no duplications)
Display the names of each of the students that you shared a class with last semester (no duplications)
Display the names of the students that shared a class with you last semester but have not shared a major with you.
Display the names of the students that shared a class with you last semester and have shared a major with you.
Display the names of the students that shared a class with you last semester or have shared a major with you.
Display the all the rooms associated with the classes you took last spring
Find the names of all the instructors teaching in the Religion and Philosophy department last year.
Find the names of the students that have taken every 100 level music theory (MUTH) course offered.
Part 3 (Cannot use a join or a nested query)
Display the ids of all people (students and instructors) associated with philosophy courses (PHIL) last semester.
Display the ids of all students who are ready of but have not taken ENGL 102 (i.e. have taken ENGL 101)
Display the ids of all students who have taken both ENGL 101 and THEO 110
Part 4
The names of the instructors that have taught the largest number of students last semester (extra credit: for each semester)
The names of the students who have taken the largest load last spring
The names of the instructors who have taught less than the average number of classes taught by any instructor last fall
Attachments
($count)
Show options
Search:
Sort by:
Name
Date
Author
Size
Type
Results per page:
6
12
24
48
all
Display hidden:
More actions
Create link(s)
Embed
Download
Hide
Unhide
Move
Delete
0
attachment(s)
Select all
Clear all
Copyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki?
Send feedback
This website is using cookies.
More info
.
That's Fine