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!

how to find middle name of any NAME column

791884Sep 26 2013 — edited Sep 26 2013

i have written below query

why it is not working  could you please help me?

select substr(ename,instr(ename,' ',1,1),instr(ename, ' ',1,2)) from e1

first instr function should return first space  position and

2 nd instr function should return  2nd space  position

so we can specify in substr function to extract the string position form  this place to that place

it would be great help if you explain  the reason

Best Regards,

Prem kumar

This post has been answered by Nag Aswadhati on Sep 26 2013
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 24 2013
Added on Sep 26 2013
6 comments
2,099 views