[PHP-DB] One to Many Select Statement

2004-09-12 Thread Gerard Samuel
Looking for clarification... Say that I have a user table and group table - -- user table -- id username 1 foo -- group table -- id user_id group_name 1 1group_1 2 1group_2 Would this be the proper way to construct a select statement for this - select u.username,

Re: [PHP-DB] One to Many Select Statement

2004-09-12 Thread John Holmes
Gerard Samuel wrote: Looking for clarification... Say that I have a user table and group table - -- user table -- id username 1 foo -- group table -- id user_id group_name 1 1group_1 2 1group_2 Would this be the proper way to construct a select statement for this - select

Re: [PHP-DB] One to Many Select Statement

2004-09-12 Thread Gerard Samuel
John Holmes wrote: Gerard Samuel wrote: Looking for clarification... Say that I have a user table and group table - -- user table -- id username 1 foo -- group table -- id user_id group_name 1 1group_1 2 1group_2 Would this be the proper way to construct a select statement