Writing a SQL stmt with specific where conditions

I am drawing a blank on this.
I want to return a recordset where I have two conditions to be met.
Here is my data
Col1   col2   col3   col4
  1        n        t         p
  2        n        r         g
  3        n        r         n
  4        o        t          x
  5        o        t          n

OK I want to return all records except for record 5 where col3=t and col4=n
I require all the other columns to be returned.  I cannot reference Col1 in the where clause
Maybe I need something like a union which I do not know the syntax.
djpierce54Asked:
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.

Brian CroweDatabase AdministratorCommented:
Not sure if this is what you're looking for but...

SELECT Col1, Col2, Col3, Col4
FROM myTable
WHERE NOT (Col3 = 't' AND Col4 = 'n')
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
awking00Commented:
select * from mydata
except
select * from mydata
where col3 = 't' and col4 = 'n';
0
djpierce54Author Commented:
Brian your answer best fit my needs as the actual query I had contains numerous joins with other tables and your's was the easiest to implement.
I could have used awking00 solution also but the select would be far more complex and I have a huge dataset to return.  The additional Select would degrade performance
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
Microsoft SQL Server

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.