Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

WHERE Clause

Posted on 2011-03-16
3
Medium Priority
?
377 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 1000 total points
ID: 35149966
add next string to WHERE
   AND emailaddress NOT LIKE "%xxxxx.com%"
0
 
LVL 8

Accepted Solution

by:
Rik-Legger earned 1000 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article discusses how to implement server side field validation and display customized error messages to the client.
It’s a season to be thankful, and we’re thankful for users like you who engage on site, solve technology problems, and network with others in the industry. What tech are we most thankful for? Keep reading.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

886 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