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

  • SEARCH
  • Home
  • 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 8431131
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T05:46:27+00:00 2026-06-10T05:46:27+00:00

I understand why these 2 statements are false NULL LIKE ‘X’ NULL NOT LIKE

  • 0

I understand why these 2 statements are false

NULL LIKE 'X'
NULL NOT LIKE 'X'

However, what I don’t understand is why these are :

NOT (NULL LIKE 'X')
NOT (NULL NOT LIKE 'X')

For example, these two statements should, I think, return different values :

SELECT CASE WHEN NOT (NULL LIKE 'X') THEN 'True' ELSE 'False' END
SELECT CASE WHEN     (NULL LIKE 'X') THEN 'True' ELSE 'False' END
  • 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-10T05:46:28+00:00Added an answer on June 10, 2026 at 5:46 am

    SQL uses a three-valued logic. You say that these are all false:

    NULL LIKE 'X'
    NULL NOT LIKE 'X'
    NOT (NULL LIKE 'X')
    NOT (NULL NOT LIKE 'X')
    

    but that’s actually not true. They’re all null, which is neither true nor false.

    A WHEN or WHERE clause rejects non-true values, which means null values as well as false ones, so it may seem like null is the same as false, but as you’ve noticed, it’s not. 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I don't realy understand how these modes works, for example if i add <!DOCTYPE>
I do not understand the following example, let's say I have these functions: #
Given these two statements... ((object)false) == ((object)false) ((object)false).Equals((object)false) The first statement returns false. The
I don't understand usage for these: msleep and msleep_interruptible ... I know one interruptible
Can you help me understand the practical differences between these two; IList<int> myList =
I don't understand PHP very well... not good start I know. I'm using http://detectmobilebrowsers.mobi/
I grabbed this code form JCarousel and just trying to understand these lines below.
I'm kind of writing a little game engine -- purely to understand how these
I am trying to understand the trade offs/differences between these to ways of opening
I am trying to understand static analysis of Java bytecode/source-code. These terms frequently come

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.