Answered SQL Help

  • Monday, January 21, 2013 3:48 PM
     
     

    Hi ,

    I think this is fairly easy for a person who knows SQL , I am not a programming guy so no idea how to deal this . Please see below and help me suggesting how to achieve the result .

    I am having a table called cdrlocaluk which has 6 column ( srno (PK) /date / time / sec / cnum / dnum )  , now I want to add another column (switchname) and update that column with every insert operation with a value of 'UK-Switch'.  Post this I want to copy this updated record including the new column ( srno (PK) /date / time / sec / cnum / dnum / switchname ) to a new table called globalcdr .

    I am not sure how to write this process in a trigger format , I tried what all I can gather from google and msdn however without any luck .

    Regards,

    Sudhir

All Replies