Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: Julian Date error in SQL statement - but it has no Julian date
Mladen,
Thanks... I was running around in circles there..
If to_char uses Julian, to_date should logically do that too: turns out the ORDER BY was added more recently and that's what causes it (not the GROUP BY). To round this up, the fix is:
16* ORDER BY to_date ( substr( to_char(hrs_start,'DD/MM, Day'), 1,5 ) , 'DD/MM' )
Cheers,
Tony
Mladen Gogala wrote:
> On 01/10/2007 10:06:51 PM, Tony van Lingen wrote: >
> > > > Tony, Here is what Metalink note 19159.1 > > Error: ORA 1835 > Text: day of week conflicts with Julian date > ------------------------------------------------------------------------------- > Cause: A Julian date was specified with the day of the week, but the weekday > did not correspond to the Julian date. > If the day of the week is specified with a Julian date, it must be the > same day of the week as the Julian date. > Action: Remove the day of the week value from the date specification or enter > the correct day of the week for the Julian date. > > It's an old note and I have no clue why did it hit you right now, but it apparently did hit > you, nevertheless. You have Julian dates: TO_CHAR calculations internally converts the date > to Julian date. > ___________________________
WARNING: This e-mail (including any attachments) has originated from a Queensland Government department and may contain information that is confidential, private, or covered by legal professional privilege, and may be protected by copyright.
You may use this e-mail only if you are the person(s) it was intended to be sent to and if you use it in an authorised way. No one is allowed to use, review, alter, transmit, disclose, distribute, print or copy this e-mail without appropriate authority. If you have received this e-mail in error, please inform the sender immediately by phone or e-mail and delete this e-mail, including any copies, from your computer system network and destroy any hardcopies.
Unless otherwise stated, this e-mail represents the views of the sender and not the views of the Environmental Protection Agency.
Although this e-mail has been checked for the presence of computer viruses, the Environmental Protection Agency provides no warranty that all viruses have been detected and cleaned. Any use of this e-mail could harm your computer system. It is your responsibility to ensure that this e-mail does not contain and is not affected by computer viruses, defects or interference by third parties or replication problems (including incompatibility with your computer system).
E-mails sent to and from the Environmental Protection Agency will be electronically stored, managed and may be audited, in accordance with the law and Queensland Government Information Standards (IS31, IS38, IS40, IS41 and IS42) to the extent they are consistent with the law.
-- http://www.freelists.org/webpage/oracle-lReceived on Thu Jan 11 2007 - 17:27:59 CST
![]() |
![]() |