Help with replacing a char inacolumn

  • I have a column with name as col1 with values as

    'eg'

    'bc'

    'bg'

    'bcgha'

    'bdg'

    'adef'

    uijk'

    uiop'

    I need to replace only first character witha blank if the first character is 'b'. Can anyone please help me with the sql. TIA

  • Not too difficult. What have you tried so far?

  • This sounds like an interview/test question. Is it?

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • Or Homework ? 😉


    * Noel

  • hmm, interesting. OP has yet to answer questions posted.

Viewing 5 posts - 1 through 4 (of 4 total)

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