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

SQL Text Functions 1

Status
Not open for further replies.

krets

Technical User
Dec 29, 2006
214
US
How can I pull a certain number of characters from a field with SQL? For instance, if I have values in a field like "OP 200, CY 301, CB 101, etc" how can I pull either the first two characters or the last three digits?
 
First2: Left([yourField],2)
Last3: Right([yourField],3)

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Sweet. I knew there had to be something like that.

Do you know of any references that would list all of the SQL functions like this? I've yet to find a really good one. Even if it were a book.
 
Search your local drives for files named jet*.chm

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top