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
177 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

911 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

19 Experts available now in Live!

Get 1:1 Help Now