Hi, I've got some theory questions regarding database and haven't been able to figure them out, hope someone here can help me out.
How do I work out the Active Domain of a relation?
Example:
In this example, I THINK the active domain ends up being all the tuples in dom(R) without b3 in it, but I have no idea why.Code:dom(A) = {a1, a2} dom(B) = {b1, b2, b3} dom(C) = (c1, c2} R = ABC r(R) A B C -------- a1 b1 c1 a1 b2 c1 a2 b1 c2 dom(R) A B C -------- a1 b1 c1 a1 b1 c2 a1 b2 c1 a1 b2 c2 a1 b3 c1 a1 b3 c2 a2 b1 c1 a2 b1 c2 a2 b2 c1 a2 b2 c2 a2 b3 c1 a2 b3 c2
Also, if ~r is dom(R) - r, and active complement is adom(R) - r, what's meant by "if |~r| > |r| then the active complement can be used as a storage compression device"?




Bookmarks