Re: [SQL] regarding join

2006-03-25 Thread Stefan Becker
given this. create table AA (id serial,name varchar(15)); create table BB (id serial,name varchar(15)); insert into AA (name) values ('1243f'); insert into AA (name) values ('asdfef'); insert into AA (name) values ('fdbsfd'); insert into AA (nam

Re: [SQL] regarding join

2006-03-24 Thread Andreas Kretschmer
AKHILESH GUPTA <[EMAIL PROTECTED]> schrieb: > hi all, > below I have created two tables in pgsql with field name as 'name' and 'id' as > their datatype 'varchar(15)' and 'integer'. > i want the output as:-> ... a UNION of this 2 tables: test=# select * from test1 union select * from test3 orde

[SQL] regarding join

2006-03-24 Thread AKHILESH GUPTA
hi all, below I have created two tables in pgsql with field name as 'name' and 'id' as their datatype 'varchar(15)' and 'integer'. One of the table is:-> chemical=> select * from test1;  name  | id ---+  akhil |  1  b |  2  c |  3  d |  4  e |  5  f |  6 (6 rows) Anot