hw1.365 - CPE 365 Introduction to Databases Fall 2007...

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

View Full Document Right Arrow Icon

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

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

Unformatted text preview: CPE 365 Introduction to Databases Fall 2007 Homework 3 Due: Tuesday, October 16, in class Problem 1 Consider the following relations: R : A B C b c 3 a c 2 c a 3 b b 1 c a 4 b a 2 S : A B C c c 2 c a 3 b b 4 a b 3 b c 3 a a 1 T : B D E F a a 1 2 c d 2 4 b b 3 2 d b 3 2 a d 2 3 b c 4 1 d a 1 4 W : C D 1 a 2 b 3 c 4 d For each of the following queries: (1) compute the answer, (2) draw the query tree. a. R S b. S- R c. R- S d. A,B ( R ) e. B,A ( R ) B,A ( S ) f. C,B ( R )- C,B ( S ) g. C ( W ) B ( S ) F ( T ) h. B = c ( R ) i. A negationslash = B ( S ) j. B,D ( F E ( T )) k. A = D ( A ( R ) W ) 1 l. A = b C> 1 ( R ) B = b C< 3 ( S ) m. ( E =3) ( T ) n. A,B,R.C,D ( R.C = W.C ( R W )) o. W R p. W R.C = W.C R q. T F = C W r. R S s. R R.B = S.A S t. ( R T ) A,C,D ( S W ) u. T 1 .D,T 2 .B ( T T 1 .D = T 2 .B T ) v. B,D,E ( F>C...
View Full Document

Page1 / 4

hw1.365 - CPE 365 Introduction to Databases Fall 2007...

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

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