Prove why it cannot be answered using relational algebra. •Consider the followin
ID: 3838035 • Letter: P
Question
Prove why it cannot be answered using relational algebra.
•Consider the following relation R containing generation information.
R (name1, name2, relationship)
•For example, a tuple <Davis, Mary, Father> means David is the Father of Mary; a tuple <Mary, Smith, Mother> means Mary is the Mother of Smith; etc.
•Suppose we are interested in finding all the descendants of David. (from the two example tuples, Mary and Smith are all descendants of David) Such a query could not be expressed using relational algebra. Prove why it cannot be answered using relational algebra.
Explanation / Answer
Solution:
Transitive closure is the only limitation relational algebra has.
and as per the given tuples <Davis, Mary, Father> and <Mary, Smith, Mother> only transitive closure can be performed to extract all the descendants of David. That is why the problem cannot be solved using relational algebra.
I hope this helps. Don't forget to give a thumbs up if you like this.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.