search for: fk_items_users

Displaying 1 result from an estimated 1 matches for "fk_items_users".

2006 Feb 21
6
Select articles from group with id ''1'' and id ''2''
...e_groups as a jointable. Now I want to select every article who is a member of group with id ''1'' and id ''2''. Whats best way to get that? Extract from schemas: CREATE TABLE articles ( id int auto_increment, ingress text NOT NULL, story_text longtext, constraint fk_items_users foreign key (user_id) references users(id), primary key (id) ); CREATE TABLE groups ( id int auto_increment, name varchar(16) NOT NULL, description varchar(32) NOT NULL, constraint fk_items_users foreign key (user_id) references users(id), primary key (id) ); CREATE TABLE article_groups ( id int au...