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

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
Running Total in Access 4 51
SQL Server 2012 r2 - Sum causes too much time 5 43
string fuctions 4 26
SQL Server: Unable to remove duplicate sets in Header/Detail 6 25
INTRODUCTION: While tying your database objects into builds and your enterprise source control system takes a third-party product (like Visual Studio Database Edition or Red-Gate's SQL Source Control), you can achieve some protection using a sing…
Data architecture is an important aspect in Software as a Service (SaaS) delivery model. This article is a study on the database of a single-tenant application that could be extended to support multiple tenants. The application is web-based develope…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

831 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