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.

How to Find string between two specific fixed strings in oracle sql

Shareef KhaleelJun 10 2020 — edited Jun 10 2020

Dear All,

We have a string which may be change in size between two specific constant strings we need to extract, how to do that;

Examples

1. Standard Purchase Order 2020234  for USD    1000.00 requires your approval.

2. Standard Purchase Order 20201001  for USD  15236.00 requires your approval.

3. Standard Purchase Order 202010 for USD          6.00 requires your approval.

as you can see string length between 'USD' and 'requires' changes. But we need to only extract:

1000.00

15236.00

6.00

may be it is simple questions, but sometimes you need a help to do it

How to do that?

Thanks and Regards,

Shareef

This post has been answered by mathguy on Jun 10 2020
Jump to Answer

Comments

Post Details

Added on Jun 10 2020
7 comments
11,214 views