Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

SQL Substring from specific caracter

user7375700Apr 25 2016 — edited Apr 25 2016

Hi everybody,

i have a problem with sql and can't resolve.

how can i get ID_2 from ID_1 by sql ?

  

ID_1ID_2
S-0000125463-ALL0000125463
SS-0000125464A-1-SEGA0000125464A-1
KBC-000025634B-2-BALL000025634B-2

separator character is always "-" but I can also have a "-" in the second part before the last "-".


thanks for your help.

This post has been answered by Paulzip on Apr 25 2016
Jump to Answer

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on May 23 2016
Added on Apr 25 2016
19 comments
5,156 views