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

Displaying part of a field

Status
Not open for further replies.

welshone

Programmer
Jul 30, 2001
414
GB
#Hello,
How can I write a SQL Statement to show only part of a field.
eg. I have a number lie 99911123_34545_09999
and I only want to display the 111 part.

What is the function to do this ?

is it like this ?
"Select Distinct MID([filename],3,3) From RepGenA Order by filename"
 
It should be something like this
"Select Distinct MID([filename],3,3) as midFileName From RepGenA Order by filename"

You have to give the SQL statement a name to call your calculation by. The hardest questions always have the easiest answers.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top