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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

split a field 1

Status
Not open for further replies.

ciarra41

Technical User
Sep 11, 2006
116
US
trying to split theses values into separate fields, there combine in one field.

City&State
ALTUS OK
OKLAHOMA CITY OK
CHOCTAW OK
PERRY OK
Salibury NC
 
Select left(fieldname,len(fieldname)-3) as city ,right(fieldname,2) as state from tablename
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top