Solved

Oracle 9i - Select date with alpha month

Posted on 2014-01-22
4
647 Views
Last Modified: 2014-01-22
Experts
I need to select a date stored in Oracle, but change the month output to 3 alpha.
Please help me do this

Here is is a current select where I return the value in YYYMMDD

SELECT
To_CHAR(TO_DATE(RCPT_EXPY_DATE),'YYYYMMDD') ORDDATE
FROM....

Open in new window


how can I get the date of 20140122  to return as JAN2214 ?
0
Comment
Question by:JDCam
  • 2
4 Comments
 
LVL 22

Accepted Solution

by:
Steve Wales earned 500 total points
ID: 39801312
This should do it I think:

select to_char(to_TO_DATE(RCPT_EXPY_DATE), 'MONDDYY') ORDDATE
0
 
LVL 23

Expert Comment

by:David
ID: 39801318
0
 
LVL 22

Expert Comment

by:Steve Wales
ID: 39801342
The function in my reply should be to_date, of course, not to_to_date :)
0
 

Author Closing Comment

by:JDCam
ID: 39801355
your kidding.... that simple?
I has waaaaay of tryring to use DECODE

Working great... Thanks
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Cursors in Oracle: A cursor is used to process individual rows returned by database system for a query. In oracle every SQL statement executed by the oracle server has a private area. This area contains information about the SQL statement and the…
'Between' is such a common word we rarely think about it but in SQL it has a very specific definition we should be aware of. While most database vendors will have their own unique phrases to describe it (see references at end) the concept in common …
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
This video shows syntax for various backup options while discussing how the different basic backup types work.  It explains how to take full backups, incremental level 0 backups, incremental level 1 backups in both differential and cumulative mode a…

809 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