Consider the following Data: Student (sID, surName, firstName, campus, email) Course (dept, cNum, name) Offering (oID, dept, cNum, term, instructor)...
View the step-by-step solution to:

Question

Consider the following Data:

Student (sID, surName, firstName, campus, email) 

Course (dept, cNum,

name)


Offering (oID, dept, cNum, term, instructor)

Took (sID, oID, grade) 

Such as:

Offering [dept, cNum] ⊆ Course[dept, cNum] 

Took [sID] ⊆ Student[sID]

Took [oID] ⊆ Offering[oID] 


Based on the Data above answer the following query using relational algebra:(database)

  1. Give the Student number of all students who have taken the course number "343" by the department "CS". 




  1. Find sID of all students who have earned some grade over 80 and some grade below 50. 



 


  1. Find the Terms when the course number "369" by the department "CS" was not offered. 



 


  1. Find the Department and course number of courses that have never been offered. 


Top Answer

Sign up to view the full answer

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

-

Educational Resources
  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question