WHERE Clause

I have a table that contains recorded logins to a site. Each record has the username which is their email address, the time, the date and the IP they logged in from. Within the query to pull all this data out, I want to skip over any records where the email address contants xxxxx.com.
How would I go about doing that?
Who is Participating?

Improve company productivity with a Business Account.Sign Up

Rik-LeggerConnect With a Mentor Commented:
SELECT * FROM table WHERE email_address NOT LIKE '%xxxxx.com';

Open in new window

k_romychConnect With a Mentor Commented:
add next string to WHERE
   AND emailaddress NOT LIKE "%xxxxx.com%"
akalbfellAuthor Commented:
Thanks guys. Just what I needed.
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.

All Courses

From novice to tech pro — start learning today.