hw1 (1) - CS 281 Fall 2010 Homework 1 Due date: October 25,...

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

View Full Document Right Arrow Icon
CS 281 Fall 2010 Homework 1 Due date: October 25, 2010. 1. [32 pts] Consider the following relations: Student(sid , sname, department) Course(cid , cname, instructor) Enroll(sid, cid, year , grade) Give the Relational Algebra expressions for the queries given below: (a) Find the names of the students who have been registered for the courses with names “Database Systems” or “Manufacturing Systems”. (b) Find the names of the students who have taken any course taught by Prof. Jones. (c) Find the names of the students who have never taken any course taught by Prof. Jones. (d) Find the names of the students with the lowest grades in course CS281 in year 2010. 2. [24 pts] Given that relation R(a,b) contains the tuples {(1,2),(2,3),(3,1)} and S(b,c) contains the tuples {(1,2),(1,3),(2,3),(2,1)}. Provide the results (both the schema and the tuples) of the following Relational Algebra operations: (a) Cross Product of R and S. (b)
Background image of page 1

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

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

Page1 / 2

hw1 (1) - CS 281 Fall 2010 Homework 1 Due date: October 25,...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online