hw1 Sol

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

CS143: Database Systems Homework #1 SOLUTION

1. (R S) (S R) is:

A 1 2 4

B 2 5 5 A 1 3 1 3 5 1 3

C 6 4 6 R.B 2 4 2 4 6 2 4 S.B 2 2 8 8 8 7 7 C 4 4 6 6 6 5 5 D 6 6 8 8 8 9 9

2. R R.A<S.CR.B<S.D S is:

3. (a) customername (branchname= Region12 (Account)) (b) customername (A.city<>B.cityA.branchname=B.branchname (B (Branch) A (Customer Account))) (c) branchname (Branch) branchname (Account) (d) customername (Customer) customername (branchname= Region12 (Account)) (e) customername (Customer) customername (customername (Customer) branchname (city= LosAngeles (Branch)) customername,branchname (Account)) (f) customername (Customer) A.customername (A.branchname<>B.branchnameA.accountnumber<>B.accountnumber)A.customername=B.customername (A (Account) B (Account))) 4. sid (Student) A.sid (A.GP A>B.GP AA.sid<>B.sid (A (Student) B (Student)))

You might also like