Search Postgresql Archives

Re: How to append tables in a view

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ashish Karalkar wrote:
> 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???

Looks like a UNION ALL to me.

-- 
Alban Hertroys
alban@xxxxxxxxxxxxxxxxx

magproductions b.v.

T: ++31(0)534346874
F: ++31(0)534346876
M:
I: www.magproductions.nl
A: Postbus 416
   7500 AK Enschede

// Integrate Your World //


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux