![]() |
INFSCI 1022
|
|
| Homework 1. Part 1. Relational Model Due before the class on Tuesday, 1/29/08. 4 problems, graded out of 80 points. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Most of the problems are referencing the following relations: student(student_id, last_name, first_name) address(student_id, state, city) education(student_id, course, semester), represented by the following tables:
Problem 1. [15 pts] Which of the following is not a true statement about the relation student above:
Problem 2. [15 pts] "Execute" the following expression for the relations above. Show (draw) each intermediate table generated by each relational operation. Write in English what task the expression performs. Problem 3. [15 pts] You have two boxes, one with markers and one with envelopes. Relation markers with one attribute color shows all possible colors of markers in the first box. Relation envelopes with one attribute color shows all possible colors of envelopes in the box. Write a relational algebra expression that would give you all possible color combinations of a random marker from the first box and a random envelope from the second box.
Problem 4. [35 pts] For the relations above, write a relational algebra expression for the following tasks:
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Homework 1. Part 2. Unix and sqlplus Due before the class on Tuesday, 1/29/08, assuming that we'll have Unix Lab on Tuesday, 1/22/08. Graded out of 20 points. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Note: Unix and Oracle logins/passwords were distributed after the lecture on 1/17/08. If you haven't received your Unix and Oracle login/password, you should contact the instructor or GSA via email from a valid email address, so the login/password could be emailed to you.
The assignment:
|