cs411-sp07-hw2-part2 - CS411 Database Systems Spring 2007...

Info icon This preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
CS411 Database Systems Spring 2007 HW #2 - Part 2 Due: 1:55pm CST, 03/06/07 Note: Print your name and NetID in the upper right corner of every page of your submission. Handin your stapled homework to Trisha Benson in 4322 SC. In case Trisha is not in office, slide your homework under the door. Problem 5 SQL Consider the following relations: Students(sid , sname, department) Courses(cid , cname, department) Register(sid , cid , semester , year , grade) Express the following queries in SQL . (5.1) Find the names of all CS students; (5.2) For each course, show its total number of registrations in “Spring” semester of 2006; (5.3) Find the courses with the highest total number of students from departments different from where the course is offered; (5.4) Find the names of students who have taken courses in both CS and ECE; (5.5) Find the records of A+ in CS courses. For each such record, return the student name, course name, semester, and year.; Problem 6 View Continue Problem 5, (6.1) Create a view LoyalStudent
Image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern