Solved

TSQL SQL 2005 How to do select with like to find emails that are @aol.com for example

Posted on 2008-10-20
1
176 Views
Last Modified: 2012-05-05
TSQL SQL 2005 How to do select with like to find emails that are @aol.com for example

I need to query database to get all customers with same domain name in email address
for instance  
Example:
select * from customers where email like @Aol.com  (ends in @aol.com)
But I do not have the right syntax...
0
Comment
Question by:hagoog
1 Comment
 
LVL 60

Accepted Solution

by:
chapmandew earned 500 total points
ID: 22761576
you were really close

select * from customers where email like '%@Aol.com'
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
This article describes how to use the timestamp of existing data in a database to allow Tableau to calculate the prior work day instead of relying on case statements or if statements to calculate the days of the week.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

757 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