Plz Help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • squrel
    New Member
    • Jan 2008
    • 143

    Plz Help

    Hello everyone..
    I have a table called TxPoHdr and in tht i have a column Contact.... in this column i have lots of names with Mr. and Ms. in the begining of the name... the problem is i have to remove The Mr. and Ms. and just keep the name... but there are lots of records and i can not remove it one by one... Is there any syntax or anything else for this particular problem?
    Thank u
  • deepuv04
    Recognized Expert New Member
    • Nov 2007
    • 227

    #2
    Originally posted by squrel
    Hello everyone..
    I have a table called TxPoHdr and in tht i have a column Contact.... in this column i have lots of names with Mr. and Ms. in the begining of the name... the problem is i have to remove The Mr. and Ms. and just keep the name... but there are lots of records and i can not remove it one by one... Is there any syntax or anything else for this particular problem?
    Thank u

    use the following query

    UPDATE TxPoHdr
    SET Contact = replace(Contact ,'Mr.','')

    use the same query to remove 'Ms' and other

    thanks

    Comment

    • squrel
      New Member
      • Jan 2008
      • 143

      #3
      Got it... Thank you very much

      Comment

      Working...