Consulting

Results 1 to 2 of 2

Thread: SQL Enterprise Manager (View) IIF Then

  1. #1
    VBAX Regular hatched850's Avatar
    Joined
    May 2005
    Location
    Tallahassee, FL
    Posts
    42
    Location

    Talking SQL Enterprise Manager (View) IIF Then


    I am soooo new at working with this software, I was wondering if there was a way to do an if then statement in the view. Such as
    IIF(ISNULL([person]),N,Y)

    What I want it to do is if the field is blank to put N and if it is not blank I want a Y.

    Let me just say that I wanted to create a new data column with this information.

    Hatched850

  2. #2
    VBAX Master stanl's Avatar
    Joined
    Jan 2005
    Posts
    1,141
    Location
    I think you have to use CASE...ELSE

    IIF(ISNULL([person]),N,Y)


    becomes something like...
    CASE WHEN [Person] IS NULL THEN 'N' ELSE 'Y' END

    Stan

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •