Can I write an If statement in a view?

  • I am trying to write an If statement in a view, but can't seem to get it right.  Does anyone know how I can accomplish this.

    Basically, I want an if statement that will see if there is a value of "x" in the field, if there is, I want it to write "Yes", otherwise I want it to write "No".

    Any help would be appreciated.

    Thanks

    Michelle

  • check out the case statement

    CASE

  •  

    one more time rocky:

    CASE WHEN colname = "X" THEN "Yes" ELSE "No" END as newcolname

    BTW: do you have infinite jest and excellent fancee?

     

     

  • Thank you for your help.  I'll definitely give this a shot.

    Michelle

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

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