I am trying to store the following data in a table where the visible_to is a multivalued attribute.
Wall_ID Facebook_ID Visible_To
W1 F1 F2,F3,F4
W2 F2 F1
W3 F3 F1
W4 F4 F1
I am trying to emulate Facebook on Oracle. I want to find the user who can view the max no of other's wall(here:F1).
I have gotten to the point of storing the multivalued attribute using NESTED table in Oracle 11g. Do I have to un-nest the table to find the result of the query or is there another way to do it?
Thanks!