[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Oracle 9i - Select date with alpha month

Posted on 2014-01-22
4
Medium Priority
?
707 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 23

Accepted Solution

by:
Steve Wales earned 2000 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 23

Expert Comment

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

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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

This article describes how to use the timestamp of existing data in a database to allow Tableau to calculate the prior work day instead of relying on case statements or if statements to calculate the days of the week.
When it comes to protecting Oracle Database servers and systems, there are a ton of myths out there. Here are the most common.
This video explains at a high level about the four available data types in Oracle and how dates can be manipulated by the user to get data into and out of the database.
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.
Suggested Courses

831 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