Decode in sql 2008

  • I heard that "Decode" is useful to get a data fastly if we want it repetitively..

    I tried it in sql server 2008 r2 but sql not support for it.. is there any function to use which does same functionality Like "Decode"

    Thanks & Regards,
    Pallavi

  • Decode is an Oracle function, not SQL Server. What are you trying to do?

    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
  • The closest match would be the case statement.



    Ole Kristian Velstadbråten Bangås - Virinco - Facebook - Twitter

    Concatenating Row Values in Transact-SQL[/url]

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

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