Solved

converting a number to 'MON' format

Posted on 2004-10-08
2
1,111 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
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.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…

695 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