Skip to page contentSkip to chat
ServiceNow support
    • Community
      Ask questions, give advice, and connect with fellow ServiceNow professionals.
      Developer
      Build, test, and deploy applications
      Documentation
      Find detailed information about ServiceNow products, apps, features, and releases.
      Impact
      Accelerate ROI and amplify your expertise.
      Learning
      Build skills with instructor-led and online training.
      Partner
      Grow your business with promotions, news, and marketing tools
      ServiceNow
      Learn about ServiceNow products & solutions.
      Store
      Download certified apps and integrations that complement ServiceNow.
      Support
      Manage your instances, access self-help, and get technical support.
Filter operators "is not", "is different from", "same as" ignore empty/null values excluding them from the query output - Known Error
  • >
  • Knowledge Base
  • >
  • Known Error (Knowledge Base)
  • >
  • Filter operators "is not", "is different from", "same as" ignore empty/null values excluding them from the query output
KB0680079

Filter operators "is not", "is different from", "same as" ignore empty/null values excluding them from the query output


4438 Views Last updated : Jun 17, 2025 public Copy Permalink
KB Summary by Now Assist

Description

When using an "is not" filter operator, the query does not return results where the field is empty or null. Also the operators "is different from" or "same as" exclude null values from comparisons.

 

Steps to Reproduce

1) Login an instance containing demo data
 
2) Navigate to User Administration > Users
 
3) Apply the following filters to the users list
• Company -- is not -- Acer
• User ID -- is -- admin
 
4) Click Run
 
Observe no records are returned, because users with no Company assigned do not satisfy the filter on company field set to Acer.

Workaround

This is expected behaviour for modern databases such as MySQL, SQL Server, and Oracle. The way the "not equal to" operator is behaving in the SN platform is congruent with standards-compliant SQL dialect.

Additional information on the SQL operator can be found in the stackoverflow article Not equal <> != operator on NULL  

The query will need to have two conditions in OR: <field> is not <value> OR <field> is empty.


Related Problem: PRB659408

The world works with ServiceNow.

Sign in for more! There's more content available only to authenticated users Sign in for more!
Did this KB article help you?
Did this KB article help you?

How would you rate your Now Support digital experience?

*

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

What can we improve? Please select all that apply.

What are we doing well? Please select all that apply.

Tell us more

*

Do you expect a response from this feedback?

  • Terms and conditions
  • Privacy statement
  • GDPR
  • Cookie policy
  • © 2025 ServiceNow. All rights reserved.