Solved

WHERE Clause

Posted on 2011-03-16
3
372 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
parse url to form? 7 26
Accessing specific element - DOM PHP HTML 8 37
Getting search results to display ul for text field being inputted into 43 60
php error 27 31
Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL (http://www.experts-exchange.com/articles/201/Handling-Date-and-Time-in-PHP-and-MySQL.html) several years ago, it seemed like now was a good time to updat…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

821 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