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!

Mid or Left in SQL Command

Status
Not open for further replies.

Llazwas

IS-IT--Management
Feb 16, 2007
58
US
I'm using Crystal 10 with a ProvideX database and trying to extract a portion of a string using a SQL command but can't get it to work. I need to use a command to resolve a linking problem.

My table contains an item.tranID like below:

R0012342
R0983745
R5789098

I need my SQL command to drop the leading digit and return the field like:

0012342
0983745
5789098

I've tried a few different commands but can't get it to work. Any assistance is greatly appreciated.
 
Hi,
The docs here:

indicate that you can use MID(string,start) so
MID({Table.Field},2) should do it.



[profile]

To Paraphrase:"The Help you get is proportional to the Help you give.."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top