What is the alternate for 'DECODE' function in SQL Server

  • Hi All,

    I basically from Oracle platform.

    Could you please tell me what is the alternatve function for DECDOE in SQL Server.

    Basically I want to replace set of words with few other words in a single query.

    Thanks,

    Ezhilan

  • I'm not sure what DEcode does. From what you said, perhaps REPLACE?

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • You Can use Case which equal to Decode of Oracle

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

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