NOT LIKE excludes desired records plus records with NULL in the field

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hopi
    New Member
    • Jul 2007
    • 1

    NOT LIKE excludes desired records plus records with NULL in the field

    Hi,

    Using this condition: AND instructions NOT LIKE '%RESUBMIT%'

    I successfully exclude records where the 'instructions' field contains the word 'RESUBMIT' but it also excludes records where the 'instructions' field contains NULL. Why and how can I get around this?

    Thank you.

    hopi
  • pbmods
    Recognized Expert Expert
    • Apr 2007
    • 5821

    #2
    Heya, hopi. Welcome to TSDN!

    Add [code=sql]OR `instructions' IS NULL[/code]

    Comment

    Working...