Solved

WHERE Clause

Posted on 2011-03-16
3
368 Views
Last Modified: 2012-05-11
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?
0
Comment
Question by:akalbfell
3 Comments
 
LVL 2

Assisted Solution

by:k_romych
k_romych earned 250 total points
ID: 35149966
add next string to WHERE
   AND emailaddress NOT LIKE "%xxxxx.com%"
0
 
LVL 8

Accepted Solution

by:
Rik-Legger earned 250 total points
ID: 35149976
SELECT * FROM table WHERE email_address NOT LIKE '%xxxxx.com';

Open in new window

0
 
LVL 8

Author Closing Comment

by:akalbfell
ID: 35150046
Thanks guys. Just what I needed.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to count occurrences of each item in an array.

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now