Re: selecting everyting from 2 non-identical tables.

2007-06-19 Thread Mogens Melander
On Tue, June 19, 2007 23:42, Olexandr Melnyk wrote: > 2007/6/19, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: >> >> My frist post was not worded correctly. I cannot join two tables as all >> the >> rows are unique. > > > What's wrong with my solution? > > 2007/6/19, Olexandr Melnyk <[EMAIL PROTECTED]>:

Re: selecting everyting from 2 non-identical tables.

2007-06-19 Thread Olexandr Melnyk
2007/6/19, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: My frist post was not worded correctly. I cannot join two tables as all the rows are unique. What's wrong with my solution? 2007/6/19, Olexandr Melnyk <[EMAIL PROTECTED]>: select id, name, age, null as height from table1 union select id,

Re: selecting everyting from 2 non-identical tables.

2007-06-19 Thread ross
t; <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; Sent: Tuesday, June 19, 2007 12:58 PM Subject: RE: selecting everyting from 2 non-identical tables. [snip] I have two non-identical tables. They are pretty similar except a few fields. I want to select everything from both for exampl

Re: selecting everyting from 2 non-identical tables.

2007-06-19 Thread Olexandr Melnyk
select id, name, age, null as height from table1 union select id, name, null as age, height from table2 2007/6/19, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: select * from table1, table2 seems to give repeat rows for some reason. It is a Cartesian product. -- Sincerely yours, Olexandr Melnyk

RE: selecting everyting from 2 non-identical tables.

2007-06-19 Thread Jay Blanchard
[snip] I have two non-identical tables. They are pretty similar except a few fields. I want to select everything from both for example table1 id name age table2 id name height I want id name height age even if it returns null values. select * from table1, table2 seems to give repeat rows