Solved

converting a number to 'MON' format

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

How to Unravel a Tricky Query Introduction If you browse through the Oracle zones or any of the other database-related zones you'll come across some complicated solutions and sometimes you'll just have to wonder how anyone came up with them.  …
This post first appeared at Oracleinaction  (http://oracleinaction.com/undo-and-redo-in-oracle/)by Anju Garg (Myself). I  will demonstrate that undo for DML’s is stored both in undo tablespace and online redo logs. Then, we will analyze the reaso…
This video shows setup options and the basic steps and syntax for duplicating (cloning) a database from one instance to another. Examples are given for duplicating to the same machine and to different machines
Via a live example, show how to take different types of Oracle backups using RMAN.

756 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