Solved

converting a number to 'MON' format

Posted on 2004-10-08
2
1,105 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

This article started out as an Experts-Exchange question, which then grew into a quick tip to go along with an IOUG presentation for the Collaborate confernce and then later grew again into a full blown article with expanded functionality and legacy…
Note: this article covers simple compression. Oracle introduced in version 11g release 2 a new feature called Advanced Compression which is not covered here. General principle of Oracle compression Oracle compression is a way of reducing the d…
This video shows how to recover a database from a user managed backup
Via a live example, show how to restore a database from backup after a simulated disk failure using RMAN.

920 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now