Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2003
    Posts
    16

    Unanswered: Is null Vs Not Null -- Performance

    I am using the following case statement
    While updating the data
    can any one tell me out of the 2
    what is better using for performance

    Which will not cause a performance issue

    1)
    When @apr is null Then apr Else @apr

    2)
    When @apr is not null Then @apr Else apr
    Regards
    Shalu

  2. #2
    Join Date
    Jul 2003
    Posts
    10
    I probably wouldn't do either. This can be simply
    isnull(@apr,apr)

  3. #3
    Join Date
    Jul 2003
    Posts
    16
    Thansks a lot
    Regards
    Shalu

Posting Permissions

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