Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

order by format

Status
Not open for further replies.

adnil

Technical User
Oct 29, 2003
50
GB
i have to_char a date in my script and giving it a heading of Step14 completed date:
TO_CHAR("TL_EVENTS"."COMPLETED_DATE", 'DD/MM/YYYY') "Step14 completed date"

at the end of the script, i'm trying to order by this date:
ORDER BY
"Step14 completed date"

my question is: how can i get the script to order by the month, then the day, then the year in ascending order?

thank you.
 
Can you order by TL_EVENTS.COMPLETED_DATE even though you're not going to show it as-is?
 
Hiya, when I try to order by TL_EVENTS.COMPLETED_DATE, I am getting an ORA-01791 error message: not a SELECTed expression [sadeyes]
 
nothing to do with SSRS - please post questions like this in the SQL Programming forum in future

Rgds, Geoff

We could learn a lot from crayons. Some are sharp, some are pretty and some are dull. Some have weird names and all are different colours but they all live in the same box.

Please read FAQ222-2244 before you ask a question
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top