Re: another simple SQL question - Mailing list pgsql-sql

From manchicken
Subject Re: another simple SQL question
Date
Msg-id 200706251210.37707.manchicken@notsosoft.net
Whole thread Raw
In response to another simple SQL question  (Joshua <joshua@joshuaneil.com>)
List pgsql-sql
On Monday 25 June 2007 10:28:40 Joshua wrote:
> 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!
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: explain analyze is your friend

You may want to consider breaking those out into individual columns.  It's 
much easier to put those together later on than it is to separate them out.

-- 
~ manchicken <><
(A)bort, (R)etry, (I)nfluence with large hammer.
09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0


Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html


pgsql-sql by date:

Previous
From: manchicken
Date:
Subject: Re: simple SQL question
Next
From: Joshua
Date:
Subject: yet another simple SQL question