create table test (col varchar(20));
insert into test values ('Computer Programmer'),(' Database Analyst'),('"-*%Data Architect'),(' #Team LEad')
select col, substring(col, patindex('%[a-zA-Z]%',col),len(col)) as newCol
from test
drop table test
Proposed as answer byMarko FrnticSunday, April 14, 2013 8:28 PM
Marked as answer byAllen Li - MSFTMonday, April 22, 2013 8:24 AM
create table test (col varchar(20));
insert into test values ('Computer Programmer'),(' Database Analyst'),('"-*%Data Architect'),(' #Team LEad')
select col, substring(col, patindex('%[a-zA-Z]%',col),len(col)) as newCol
from test
drop table test
Proposed as answer byMarko FrnticSunday, April 14, 2013 8:28 PM
Marked as answer byAllen Li - MSFTMonday, April 22, 2013 8:24 AM
declare @tab table (col varchar(20))
insert into @tab
select 'Computer Programmer' union all
select ' Database Analyst' union all
select '-*%Data Architect' union all
select ' #Team LEad'
select stuff(col, 1, patindex('%[a-zA-Z]%',col)-1, '') from @tab