Re: regarding join - Mailing list pgsql-sql

From Andreas Kretschmer
Subject Re: regarding join
Date
Msg-id 20060325074554.GA6978@KanotixBox
Whole thread Raw
In response to regarding join  ("AKHILESH GUPTA" <akhilesh.davim@gmail.com>)
List pgsql-sql
AKHILESH GUPTA <akhilesh.davim@gmail.com> 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 order by 2,1;name  | id
-------+----ab    |  1akhil |  1b     |  2cd    |  2c     |  3ef    |  3d     |  4gh    |  4e     |  5f     |  6
(10 rows)


HTH, Andreas
-- 
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect.                              (Linus Torvalds)
"If I was god, I would recompile penguin with --enable-fly."    (unknow)
Kaufbach, Saxony, Germany, Europe.              N 51.05082°, E 13.56889°


pgsql-sql by date:

Previous
From: "AKHILESH GUPTA"
Date:
Subject: regarding join
Next
From: Stefan Becker
Date:
Subject: Re: regarding join