Solved

converting a number to 'MON' format

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

Join & Write a Comment

Suggested Solutions

Configuring and using Oracle Database Gateway for ODBC Introduction First, a brief summary of what a Database Gateway is.  A Gateway is a set of driver agents and configurations that allow an Oracle database to communicate with other platforms…
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.
Via a live example, show how to take different types of Oracle backups using RMAN.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

743 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

15 Experts available now in Live!

Get 1:1 Help Now