Re: SELECT ... JOIN with NULL values

2005-08-26 Thread SGreen
Nuno Pereira <[EMAIL PROTECTED]> wrote on 08/26/2005 02:30:08 PM: > [EMAIL PROTECTED] wrote: > > Nuno Pereira <[EMAIL PROTECTED]> wrote on 08/26/2005 02:08:50 PM: > > > > > >>Hi list, > >> > >>I have a query like this (the original is very big and names of > >>columns/tables are in portuguese)

Re: SELECT ... JOIN with NULL values

2005-08-26 Thread Nuno Pereira
Sorry for replying to mysqlf, but it really solved the problem: there were another JOIN that had to be transformed to a LEFT JOIN. Thanks. Nuno Pereira wrote: [EMAIL PROTECTED] wrote: Nuno Pereira <[EMAIL PROTECTED]> wrote on 08/26/2005 02:08:50 PM: Hi list, I have a query like this (th

Re: SELECT ... JOIN with NULL values

2005-08-26 Thread Nuno Pereira
[EMAIL PROTECTED] wrote: Nuno Pereira <[EMAIL PROTECTED]> wrote on 08/26/2005 02:08:50 PM: Hi list, I have a query like this (the original is very big and names of columns/tables are in portuguese): SELECT * FROM tbl1 t JOIN tbl2 u ON (t.id_tbl2=u.id) For a schema like this: CREATE TABLE

Re: SELECT ... JOIN with NULL values

2005-08-26 Thread SGreen
Nuno Pereira <[EMAIL PROTECTED]> wrote on 08/26/2005 02:08:50 PM: > Hi list, > > I have a query like this (the original is very big and names of > columns/tables are in portuguese): > > SELECT * FROM tbl1 t JOIN tbl2 u ON (t.id_tbl2=u.id) > > For a schema like this: > > CREATE TABLE tbl2 ( >

SELECT ... JOIN with NULL values

2005-08-26 Thread Nuno Pereira
Hi list, I have a query like this (the original is very big and names of columns/tables are in portuguese): SELECT * FROM tbl1 t JOIN tbl2 u ON (t.id_tbl2=u.id) For a schema like this: CREATE TABLE tbl2 ( id INT NOT NULL auto_increment PRIMARY KEY, data_col2 int NOT NULL ) ENGINE=InnoDB; CR