Difference: CSC210S2026Lab1 (1 vs. 4)

Revision 42026-01-19 - CathyBareiss

Line: 1 to 1
 
META TOPICPARENT name="CSC210SylS2026"

SQL Lab 1

Line: 15 to 15
 
  1. Display all courses taught within the Comp. Sci. department that are lower level (not 300 or above).
  2. Display the names and IDs of all professors in one column with just a space separating the two.
  3. Display all the courses (course_id) that have been taught at least once without an assigned location.
Changed:
<
<
  1. Display all the different unique combinations of semesters and buildings have been taught at the university. What results might be consider missing;
>
>
  1. Display all the different unique combinations of semesters and buildings have been taught at the university. What results might be consider missing?
 
  1. (Bonus) Find students who have taken courses taught by both Tung and Dale.
\ No newline at end of file

Revision 32026-01-14 - CathyBareiss

Line: 1 to 1
 
META TOPICPARENT name="CSC210SylS2026"

SQL Lab 1

Line: 9 to 9
 Questions:

  1. 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.
Changed:
<
<
  1. 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.
>
>
  1. Find the ids of instructor Kean and instructor Choll. Use that information to display the courses taught by Kean in Fall 2003 or Choll in Spring 2002.
 
  1. 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.
  2. Repeat the previous question using the IN operator.
  3. Display all courses taught within the Comp. Sci. department that are lower level (not 300 or above).

Revision 22026-01-13 - CathyBareiss

Line: 1 to 1
 
META TOPICPARENT name="CSC210SylS2026"

SQL Lab 1

Line: 8 to 8
  Questions:
Changed:
<
<
  1. 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.
  2. 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.
  3. 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.
  4. 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.
>
>
  1. 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.
  2. 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.
  3. 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.
  4. Repeat the previous question using the IN operator.
 
  1. Display all courses taught within the Comp. Sci. department that are lower level (not 300 or above).
  2. Display the names and IDs of all professors in one column with just a space separating the two.
Changed:
<
<
  1. Display all the courses (code, number) that have been taught at least once without an assigned location.
  2. Display all the different unique combinations of what days courses have been taught at the university.
  3. (Bonus) Find students who have taken courses taught by both Katz and Califieri.
>
>
  1. Display all the courses (course_id) that have been taught at least once without an assigned location.
  2. Display all the different unique combinations of semesters and buildings have been taught at the university. What results might be consider missing;
  3. (Bonus) Find students who have taken courses taught by both Tung and Dale.

Revision 12026-01-05 - CathyBareiss

Line: 1 to 1
Added:
>
>
META TOPICPARENT name="CSC210SylS2026"

SQL Lab 1

This lab uses the enrollment data.

Only turn in the sql statements (not the results of the query). You may test your queries out online. (But remember, just because you get the right data back, that does not mean your query is correct!). Turn in an electronic copy of your .sql file. Include your name and label each question (using comments).

Questions:

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. Display all courses taught within the Comp. Sci. department that are lower level (not 300 or above).
  6. Display the names and IDs of all professors in one column with just a space separating the two.
  7. Display all the courses (code, number) that have been taught at least once without an assigned location.
  8. Display all the different unique combinations of what days courses have been taught at the university.
  9. (Bonus) Find students who have taken courses taught by both Katz and Califieri.
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback