Code, SQL ServerJuly 9, 2009 5:06 pm
Suppose values in your fields contain a period, and you want to return all characters that come before it. This is how you do in SQL Server:
select substring(column1, 1, charindex(’.', column1)-1 )
from myTable