Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

two comparison <> combined

Status
Not open for further replies.

GROKING

Programmer
Mar 8, 2005
26
0
0
US

Hello,

Trying to combine two not equals together where the combo is a set.
I am trying this in mysql 5.1 with wrong intended results.

select *
from ab_test
where ((test_name <> 'WinBuyer') and (isactive <> 'true'))

Results wanted
test_name 'George' and isactive 'true'
test_nmae 'Fred' and isactvie 'false'

Any ideas on this would be helpful.

May need a subquery?

Thanks

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top