| |
| META TOPICPARENT |
name="CSC210SylS2026" |
SQL Lab 1 |
| |
Questions: |
|
< < |
- Display all the courses you have taken (code, number) ordered by course_id. You can first look up your id number in the student table. (It may be different from what you use at your institution for privacy reasons). If you prefer, you can do it for any one student of your choice instead.
- Find the ids of instructor Katz and instructor Califieri. Use that information to display the courses taught by Katz in Fall 2009 or Califieri in Spring 2010.
- Find the id of instructor Singh and use it to display the ids of students who were in a Computer Science course taught by Singh in Fall 2009 (CS-101, CS-190, and CS-347). Do not use an IN operator.
- Display the ids of students who were in a Computer Science course taught by Singh in Fall 2009 (CS-101, CS-190, and CS-347). Use the IN operator.
|
> > |
- Display all the courses you have taken (course id, section id, and semester) ordered by course_id. You can first look up your id number in the student table. (It may be different from what you use at your institution for privacy reasons). If you prefer, you can do it for any one student of your choice instead.
- Find the ids of instructor Kean and instructor Choll. Use that information to display the courses taught by Katz in Fall 2003 or Califieri in Spring 2002.
- Find the id of instructor Voronina and use it to display the ids of students who were in a music or accounting course taught by Vornina in Fall 2006. Do not use an IN operator.
- Repeat the previous question using the IN operator.
|
| |
- Display all courses taught within the Comp. Sci. department that are lower level (not 300 or above).
- Display the names and IDs of all professors in one column with just a space separating the two.
|
|
< < |
- Display all the courses (code, number) that have been taught at least once without an assigned location.
- Display all the different unique combinations of what days courses have been taught at the university.
- (Bonus) Find students who have taken courses taught by both Katz and Califieri.
|
> > |
- Display all the courses (course_id) that have been taught at least once without an assigned location.
- Display all the different unique combinations of semesters and buildings have been taught at the university. What results might be consider missing;
- (Bonus) Find students who have taken courses taught by both Tung and Dale.
|