Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Quering Email Names

Author  Topic 

starnold
Yak Posting Veteran

83 Posts

Posted - 2008-03-13 : 06:44:29
I am trying to write a query to exclude a set of particular users from our Users Table where they have particular domain names

We want to exclude all users that have a domain of @dnb.com & @test.com.

Can anyone suggest anything?

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2008-03-13 : 06:45:43
select * from Table1
where email not like '%@dnb.com'
and email not like '%@test.com'



E 12°55'05.25"
N 56°04'39.16"
Go to Top of Page
   

- Advertisement -