pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Joshua <joshua@joshuaneil.com>
To: pgsql-sql@postgresql.org
To: pgsql-novice@postgresql.org
To: pgsql-general@postgresql.org
Subject: another simple SQL question
Date: Mon, 25 Jun 2007 10:28:40 -0500
Message-ID: <467FDF28.8000108@joshuaneil.com> (raw)

Ok here is another simple question from a novice....

Here is what my table looks like

firstname         lastname         fullname
----------       ----------       -----------
                                              smith, john
                                              green, susan
                                              white, jeff


How can I break the fullname field into firstname lastname fields so it 
looks like the following:

firstname      lastname      fullname
---------     ---------       ---------
john             smith             smith, john
susan           green             green, susan
jeff               white             white, jeff

Please let me know. Sorry for such simple novice questions, I appreciate 
your support.

THANKS!



view thread (8+ messages)  latest in thread

Message-ID: <467FDF28.8000108@joshuaneil.com>
Permalink:  ../467FDF28.8000108@joshuaneil.com/
Also on:    postgresql.org/message-id/467FDF28.8000108@joshuaneil.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: joshua@joshuaneil.com, pgsql-novice@postgresql.org, pgsql-general@postgresql.org
  Subject: Re: another simple SQL question
  In-Reply-To: <467FDF28.8000108@joshuaneil.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox