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!

convert any number to numberth format

675257Feb 2 2009 — edited Feb 2 2009
Hi,

Can anybody tell me how to convert any number to numberth format.I mean to say 100 to 100th,51 to 51st like that.

I am able to convert from number 1 to 31 by using to_char(to_date(<number>,'J'),'ddth').above that I am unable to covert.

and don't send me any script.I want a single sql statement which will take care of this.

Thanks

Kali Prasad
This post has been answered by MichaelS on Feb 2 2009
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 2 2009
Added on Feb 2 2009
14 comments
856 views