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 908761
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T16:46:02+00:00 2026-05-15T16:46:02+00:00

i have this statement in access: SELECT * FROM accountsnew WHERE [Panels] not like

  • 0

i have this statement in access:

SELECT *
FROM accountsnew
WHERE [Panels] not like '*IT_OXYC,*' and [Panels] not like '*OXY_SN,*' and [Panels] not like '*OXY_S,*' and [Panels] not like '*OXY_N,*' and [Panels] like '*OXYC_SNEG,*' or [Panels] like '*OXYC_PNEG,*';

for some reason it is not returning the proper dataset. when i look more deeply at the data returned, using excel, i see that what it returned in fact DID contain IT_OXYC, and some other parameters.

is there something wrong with my statement?

i am trying to get all records which do not have IT_OXYC, OXY_SN , OXY_S, etc… and DO have either OXYC_SNEG, or OXYC_PNEG,

  • 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-05-15T16:46:03+00:00Added an answer on May 15, 2026 at 4:46 pm

    Your logic is wrong. Translating your request bit-by-bit:

    I am trying to get all records

    SELECT * FROM accountsnew

    which do not

    WHERE NOT (…)

    have IT_OXYC or OXY_SN or OXY_S, etc…

    (x LIKE ‘IT_OXYC‘ OR x LIKE ‘IOXY_SN‘ OR x LIKE ‘OXY_S‘ OR …)

    and DO have either OXYC_SNEG, or OXYC_PNEG,

    AND (x LIKE ‘OXYC_SNEG‘ OR x LIKE ‘OXYC_PNEG‘)

    Putting it all together:

    SELECT *
    FROM accountsnew
    WHERE NOT ([Panels] LIKE '*IT_OXYC*' OR
               [Panels] LIKE '*IOXY_SN*' OR
               [Panels] LIKE '*OXY_S*' OR ...)
    AND ([Panels] LIKE '*OXYC_SNEG*' OR 
         [Panels] LIKE '*OXYC_PNEG*')
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have this sql statement in access: SELECT * FROM (SELECT [Occurrence Number], [1
If I have a Select Statement like this: SELECT T1.TEXT, T2.FIELD FROM TABLE1 T1,
I have this very simple sql statement: SELECT max_dose FROM psychotropes WHERE (patient_meds.psychotrope =
i have the following access sql statement: SELECT * FROM (SELECT [Occurrence Number], [Occurrence
I have this sql statement: CREATE TABLE [dbo].[User]( [UserId] [int] IDENTITY(1,1) NOT NULL, [FirstName]
i have this MySQL statement from a search page, the user enters there postcode
I have seen this statement in many of the documention samples, like here This
I have a select from (nothing to complex) Select * from VIEW This view
I am using the statement SELECT * INTO #gsig_ref FROM gsign WHERE [name] NOT
I have this query statement and want to only get records that has a

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.