Re: Add one column to another - Mailing list pgsql-sql

From Oliveiros d'Azevedo Cristina
Subject Re: Add one column to another
Date
Msg-id 0D887B9957604C82AE742AC437E8AF0A@marktestcr.marktest.pt
Whole thread Raw
In response to Add one column to another  (gvim <gvimrc@gmail.com>)
Responses Re: Add one column to another  (Scott Marlowe <scott.marlowe@gmail.com>)
List pgsql-sql
Something like this...?

SELECT first_name,surname, email1 || ';' || email2
FROM t_your_table;


Best,
Oliver

----- Original Message ----- 
From: "gvim" <gvimrc@gmail.com>
To: "pgsql sql" <pgsql-sql@postgresql.org>
Sent: Thursday, August 25, 2011 3:21 PM
Subject: [SQL] Add one column to another


>I have to deal with a table which contains:
>
> first_name
> surname
> email1
> email2
>
> ... and I would like to create a view which combines both email columns 
> thus:
>
> first_name
> surname
> email
>
> It looks simple but I can't think of an obvious query.
>
> gvim
>
> -- 
> Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-sql 



pgsql-sql by date:

Previous
From: Tony Capobianco
Date:
Subject: Re: Add one column to another
Next
From: "David Johnston"
Date:
Subject: Re: Add one column to another