Software Engineering for Internet Applications
create table users ( user_id integer primary key, ... -- a space-separated list of group IDs group_memberships varchar(4000), ... );
user_groups
table and them create a map:create table user_group_map ( user_id not null references users; user_group_id not null references user_groups; unique(user_id, user_group_id) );
9 of 30