Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need SQL Help

Status
Not open for further replies.

dmaier

MIS
Apr 13, 2002
38
US
I need help with an update SQL. Basically if there is a phrase at the end of a column that I want to remove.

Example:
Hawks' co-Owner stays optimistic-September 1
Keeping Camby a taxing issue-September 1
Nuggets strive to aim higher-September 1

There are a number of these and what I would like to do is mass delete the -September 1 from the field. Is there a way to do this through SQL on an Microsoft SQL Server?
 
Make sure you have a good backup first.

Code:
Update TableName
Set    Column = Left(Column, Len(Column)-12)
Where  Column Like '%-September 1'

-George

"the screen with the little boxes in the window." - Moron
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top