Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2004

    Unanswered: Append string to field value in select list

    How can I append a string to the field value in the select list

    SELECT Code + '-20' FROM tb.....
    I want to the above to return 2000-20 for example.

    How can I do this?

    Mike B

  2. #2
    Join Date
    Jul 2003
    San Antonio, TX
    Just like you did if Code is a character-based datatype. If not, - then CAST(Code as varchar(10)) + '-20'
    "The data in a record depends on the Key to the record, the Whole Key, and
    nothing but the Key, so help me Codd."

Posting Permissions

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