Need to Join 2 Fields from Same Table for a View

  • Newbie Here..

    i have 2 fields.

    IDNUMBER and PRINTCOUNT

    sample data

    123456789 and 01

    i am trying to create a view that will join the two fields into one field for an application to read from

    12345678901

    can someone provide me with some pointers?

  • assuming both fields are numbers

    Select CAST(IDNUMBER as varchar(15)) + CAST(PRINTCOUNT as varchar(10)) as ConcatenatedField from dbo.MyTable

  • excellent. works like a charm. thank you

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply