Re: [GENERAL] Getting several columns from subselect with LIMIT 1

2008-09-20 Thread Merlin Moncure
On Sat, Sep 20, 2008 at 11:36 AM, Pierre Thibaudeau <[EMAIL PROTECTED]> wrote: > I have a PERSONS table. > I also have a PROGENY table, which is a many-to-many association table > with two foreign keys to the PERSONS table to itself. > (In this day and age, not only can an individual have any numbe

Fwd: [GENERAL] Getting several columns from subselect with LIMIT 1

2008-09-20 Thread Pierre Thibaudeau
Thanks for the suggestion. Unfortunately I get an INVALID COLUMN REFERENCE (SQL state: 42P10) to the effect that the subselect in the FROM clause cannot reference other tables at the same request level. 2008/9/20 Marcus Engene <[EMAIL PROTECTED]>: >> >> SELECT >>persons.*, >>( >>

Re: [GENERAL] Getting several columns from subselect with LIMIT 1

2008-09-20 Thread Marcus Engene
Pierre Thibaudeau wrote: I have a PERSONS table. I also have a PROGENY table, which is a many-to-many association table with two foreign keys to the PERSONS table to itself. (In this day and age, not only can an individual have any number of children, but also a person can have any number of pare

[GENERAL] Getting several columns from subselect with LIMIT 1

2008-09-20 Thread Pierre Thibaudeau
I have a PERSONS table. I also have a PROGENY table, which is a many-to-many association table with two foreign keys to the PERSONS table to itself. (In this day and age, not only can an individual have any number of children, but also a person can have any number of parents! At least, let's assum