Script to append character?

  • Hi All,

    I need to go through a set of records, and based on an ID match between a source table and the main table - add a 'X-' to the front of an employees name.

    Can anyone get me off to a good start here for the character addition?

    THX.

    RW

    [font="Verdana"]-- Wally
    -- Reluctant DBA[/font]

  • UPDATE SourceTable

    SET EmployeeName = 'X-' + EmployeeName

    WHERE Sourcetable.ID = MainTable.ID



    Mark

  • Perfect!

    Actually had just about figured it out.

    Thanks Mark.

    [font="Verdana"]-- Wally
    -- Reluctant DBA[/font]

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

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