Question: Let R = (A, B) and S = (A, C), and let r(R) and s(S) be relations.Write expressions in QBE and Datalog for each of
Let R = (A, B) and S = (A, C), and let r(R) and s(S) be relations.Write expressions in QBE and Datalog for each of the following queries:
a. {< a > | ∃ b (< a, b >∈ r ∧ b = 17)}
b. {< a, b, c > | < a, b >∈ r ∧ < a,c >∈ s}
c. {< a > | ∃ c (< a,c >∈ s ∧ ∃b1, b2 (< a,b1 > ∈ r ∧ < c, b2 > ∈ r ∧ b1 > b2))}
Step by Step Solution
3.47 Rating (177 Votes )
There are 3 Steps involved in it
a abErAb 17 i AB P17 ii query X rX ... View full answer
Get step-by-step solutions from verified subject matter experts
Document Format (1 attachment)
16-CS-DB (156).docx
120 KBs Word File
