Question

Database question:

Assume we have an instance of RCA, B, as given in the following table: A B C al bl cl a3 b3 c3 a4 b4 c4. Let R1 be a relation which is a PROJECTION of R on A and B (e, containing only columns A and Bin R. R2 be a relation which is PROJECTION of R on A and C (ie, containing only an on only column B in R) (a) Find R4 which is the NATURAL JOIN of R1 and R2 (b) Find R5 which is the CARTESIAN PRODUC of R2 and R3

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Ans:

  1. R4------- Natural JOIN of R1 and R2

A

B

C

a1

b1

c1

a2

b2

c2

a3

b3

c3

a4

b4

c4

a5

b5

c5

  1. R5 ----------------------- CARTESIAN PRODUCT of R2 and R3

A

C

B

a1

c1

b1

a1

c1

b2

a1

c1

b3

a1

c1

b4

a1

c1

b5

a2

c2

b1

a2

c2

b2

a2

c2

b3

a2

c2

b4

a2

c2

b5

a3

c3

b1

a3

c3

b2

a3

c3

b3

a3

c3

b4

a3

c3

b5

a4

c4

b1

a4

c4

b2

a4

c4

b3

a4

c4

b4

a4

c4

b5

a5

c5

b1

a5

c5

b2

a5

c5

b3

a5

c5

b4

a5

c5

b5

Add a comment
Know the answer?
Add Answer to:
Database question: Assume we have an instance of R(A, B, C) as given in the following...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT