How to append tables in a view

From: "Ashish Karalkar" <ashish(dot)karalkar(at)info-spectrum(dot)com>
To: <pgsql-general(at)postgresql(dot)org>
Cc: "Shoaib Mir" <shoaibmir(at)gmail(dot)com>
Subject: How to append tables in a view
Date: 2007-02-13 08:55:24
Message-ID: 007701c74f4c$c59e4060$170211ac@LIONKING.COM
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello List,

I want to append column of two different tables in a single column of a view .

data type of tow column of two diffrent tables will be same.

WHAT I WANT TO DO IS:

Table 1
ID DESC
1 A
2 B
3 C





Table 2
ID DESC
1 D
2 E
3 F



View(Table1|| Table 2)
ID_view Desc

1 A
2 B
3 C
4 D
5 E
6 F

Is there any way???

Thanks in advance
Ashish...

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Alban Hertroys 2007-02-13 09:05:45 Re: Adjacency List or Nested Sets to model file system hierarchy?
Previous Message Magnus Hagander 2007-02-13 08:40:10 Re: PostgreSQL and OpenLdap