Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2003
    Location
    Netherlands
    Posts
    98

    Unanswered: Grouping 2 columns into 1!

    HI,

    i have 2 columns named firstname and lastname, i need to get them into 1 column named name with a space between them.
    Does anyone have a tip to do this?

    Wimmo

  2. #2
    Join Date
    Sep 2003
    Location
    Germany
    Posts
    63
    Hi Wimmo,

    just something like

    Code:
    select column_firstname + ' ' + column_lastname
    from table
    The "+" concatenates two CHAR or VARCHAR columns.

    Carsten
    Last edited by CarstenK; 04-21-04 at 06:19.

  3. #3
    Join Date
    Oct 2003
    Location
    Netherlands
    Posts
    98
    Originally posted by CarstenK
    Hi Wimmo,

    just something like

    Code:
    select column_firstname + ' ' + column_lastname
    from table
    The "+" concatenates two CHAR or VARCHAR columns.

    Carsten
    Thanx alot that did it

    Greetz Wimmo

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •