Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8420489
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T02:53:45+00:00 2026-06-10T02:53:45+00:00

My assumption was that it would return a true if that value was numeric

  • 0

My assumption was that it would return a true if that value was numeric (within the isnumeric range) but FALSE if the ISNULL returns 'blah'. Seems like my assumption was off…

I’m using the it in the following way

case when ISNULL(ISNUMERIC(c.npinumber), 'blah') = 1
       then c.NPiNUmber
     else 'not valid: ' + c.NpiNumber
     end as npi 
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T02:53:46+00:00Added an answer on June 10, 2026 at 2:53 am

    Building on Dhruvesh’s answer,

    case
        when ISNUMERIC(c.npinumber) = 1 then c.NPiNUmber
        else 'not valid: ' + c.NpiNumber
    end as npi
    

    Will produce NULL anytime NpiNumber is NULL. The reason is that NULL + any string will still return NULL. The solution is to simply use the COALESCE function

    case
        when ISNUMERIC(c.npinumber) = 1 then c.NPiNUmber
        else 'not valid: ' + COALESCE(c.NpiNumber, 'NULL VALUE')
    end as npi
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

std::map<std::string, int> m; // Can I make assumption that m[NoSuchKey] will return 0? std::cout
I was under the assumption that an anonymous user cannot send a presence stanza
Possible Duplicate: What is your longest-held programming assumption that turned out to be incorrect?
In this question , I mentioned my assumption that rubyforge gems are more official,
To keep things simple, please allow the assumption that some code requires the use
How is hashCode() implemented? My assumption is that it uses the object memory location
assumption: Event\Service\EventService is my personal object that works with Event\Entity\Event entities This code works
I have been under the assumption for a while that viewDidUnload is always called
Usually (as in C++), the hash function returns any size_t value -- thus many
My assumption is that, with compiler optimization (e.g., inlining), it makes practically no difference

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.