Results 1 to 2 of 2

Thread: Adding 01 to End of SSN

Hybrid View

  1. #1
    Join Date
    Nov 2003
    Location
    Miami
    Posts
    1

    Adding 01 to End of SSN

    Hello,

    Can anyone tell me how to add 01 to the end of social security numbers? Sometimes I have to do this to hundreds of records and apart from it being time consuming, it is a real pain. Any help will be greatly appreciated.

    Thanks.

  2. #2
    Join Date
    Sep 2002
    Location
    Fantasy
    Posts
    4,254
    --if ssn is a char or varchar
    update tablename set ssn = ssn+'01'

    --if ssn is an int or bigint

    update tablename set ssn =
    convert(int,convert(varchar(20),ssn)+'01')

Posting Permissions

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