gstoll2003
2005-12-08 14:23:44 UTC
Right now I have a table of users, and a table that has one column for each group, and one row for each user, and a boolean entry specifying whether the user is in the group. The problem is that this makes the query to determine whether a user can see another user is complicated, and if I want to add another group I have to change this query to account for the additional column.
Is there a better way to structure this in a relational database? (I'm currently using PostgreSQL , which I don't think matters)