Results 1 to 5 of 5

Thread: Combine fields

  1. #1
    Join Date
    Jul 2004
    Posts
    191

    Unanswered: Combine fields

    I have two fields that I would like to combine into 1 field is this possible.

    Example: Document # 555, Doc Description ABCD in the 3 field I would like 555-ABCD.

    Is that possible in SQL Server thanks

  2. #2
    Join Date
    Nov 2002
    Location
    Jersey
    Posts
    10,322
    could you provide us some info as outlined in the hint sticky that's on top of the board?
    Brett
    8-)

    It's a Great Day for America everybody!

    dbforums Yak CorralRadio 'Rita
    dbForums Member List
    I'm Good Once as I ever was

    The physical order of data in a database has no meaning.

  3. #3
    Join Date
    Jul 2004
    Posts
    191
    Select DocNoc, DocDesc from DocTable (take these to fields and insert it into one field in the same table.
    Insert into DocNumDesc

    How would I go about creating this syntax. Thanks

  4. #4
    Join Date
    Nov 2002
    Location
    Jersey
    Posts
    10,322
    SELECT DocNoc+DocDesc

    ??
    Brett
    8-)

    It's a Great Day for America everybody!

    dbforums Yak CorralRadio 'Rita
    dbForums Member List
    I'm Good Once as I ever was

    The physical order of data in a database has no meaning.

  5. #5
    Join Date
    Jul 2004
    Posts
    191
    Okay is the correct syntax:

    INSERT INTO DocNumDesc
    SELECT DocNoc +DocDesc
    FROM DocTable


    Thanks

Posting Permissions

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