General information
Forum:
Microsoft SQL Server
Title:
String within a string
Environment versions
SQL Server:
SQL Server 2008
I have a table with a field called email.
I would like to make sure that all email are valid.
How can I build a select statement that will return all the records that do not have a .com or .net in the email field.
Select * from emails WHERE ".com" OR ".net" is not in the email field
Any help is appreciated.
Thanks
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only