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

From David Johnston
Subject Re: Add one column to another
Date
Msg-id 021201cc6336$c3547e20$49fd7a60$@yahoo.com
Whole thread Raw
In response to Add one column to another  (gvim <gvimrc@gmail.com>)
List pgsql-sql
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.

-----------------------------------------------------------

SELECT first_name, surname, ARRAY[email1, email2] AS email
FROM [...]

David J.



pgsql-sql by date:

Previous
From: "Oliveiros d'Azevedo Cristina"
Date:
Subject: Re: Add one column to another
Next
From: Tim Landscheidt
Date:
Subject: Re: Add one column to another