Solved

converting a number to 'MON' format

Posted on 2004-10-08
2
1,108 Views
Last Modified: 2012-05-05
Is there a way in Oracle 9i to convert numbers, 1 through 12 to 'MON' format without a long CASE or DECODE clause in an SQL statement?
0
Comment
Question by:dnarramore
2 Comments
 
LVL 15

Accepted Solution

by:
andrewst earned 125 total points
ID: 12259372
Yes:

to_char(to_date(:number,'MM'),'MON')

e.g.

SQL> select to_char(to_date(7,'MM'),'MON') from dual;

TO_
---
JUL
0
 
LVL 3

Author Comment

by:dnarramore
ID: 12259391
Thanks for the quick response!
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Have you ever had to make fundamental changes to a table in Oracle, but haven't been able to get any downtime?  I'm talking things like: * Dropping columns * Shrinking allocated space * Removing chained blocks and restoring the PCTFREE * Re-or…
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
This video shows how to copy a database user from one database to another user DBMS_METADATA.  It also shows how to copy a user's permissions and discusses password hash differences between Oracle 10g and 11g.
This video shows how to recover a database from a user managed backup

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question