Help with Boolean Search

I am creating a default query to base a scope on and I need some help. LAN

As part of the query, I have about 8 or 9 specific machine names I want to exclude, and several others that have similar, but not exact name.

So when I get to this grouping in the query
AND ("Computer"."Device Name" NOT LIKE "Specificmachine1"
OR "Computer"."Device Name" NOT LIKE "Specificmachine2"
OR "Computer"."Device Name" NOT LIKE "Specificmachine3"
OR "Computer"."Device Name" NOT LIKE "Specificmachine4"
OR "Computer"."Device Name" NOT LIKE "ABDR")

 The first 4 in the example are specific names of computer, the last on  is PART of a name that appears in several computers.  But when I run the query, that last line is ignored and I see computers with ABDR in the results.

What I want for that like is any computer with ADBR anywhere in the device name.

Me and Boolean searches only cooperate so far and then I go nuts.

 

Thanks
LVL 2
MrSlithyAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Steven CarnahanNetwork ManagerCommented:
So what you are really looking for is not:
OR "Computer"."Device Name" NOT LIKE "ABDR")

but more like:
OR "Computer"."Device Name" CONTAINS "ABDR")

or use wild cards:
OR "Computer"."Device Name" NOT LIKE "*ABDR*")
0
MrSlithyAuthor Commented:
Yeah, but I didn't see that originally as an option in Landesk. That's what I tried on a new query, all other items removed for troubleshooting.  

But now that I look more closely at Landesk help on this I see that it does allow for"*ABDR" and also for "ABRD*"
but I was trying *ABDR* and couldn't get it to work.  

So maybe I'' try creating a group of two operators  and see what happens
*ABDR or ABDR*

Thanks.
0
ozoCommented:
Do you mean AND rather than OR?
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Steven CarnahanNetwork ManagerCommented:
So maybe I'' try creating a group of two operators  and see what happens
 *ABDR or ABDR*

Will only return results that start or end with ABDR.
0
MrSlithyAuthor Commented:
That's it! CONAINS. Duh!

This is a Landesk query builder and I only have the following options
+, <>, <=,>=,<,>,Exist, not exist. like, not like.

So that explains it.  There are, indeed, several variations.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Programming

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.