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

SQL Query to Extract after 2nd dash in a field

Status
Not open for further replies.

trvlbabie

Programmer
Feb 16, 2016
1
0
0
US
I am trying to extract the 5-digit number out of a field that is formatted in the following manner:

XXXX-###-[highlight #FCE94F]#####[/highlight]-#########-#

I need to extract the 5-digit number (highlighted) after the second '-' . I'd like to use SUBSTRING if possible in SQL. Help???
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top