473,396 Members | 2,140 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Invalid Date Stored In Oracle - Any Guesses ?

Hi,

I have an Oracle 8i instance which has somehow managed to store the
29th of February 2005 in a date field. As 2005 isn't a leap year this
is an invalid date.

SQL> select NEXTTRIG_DATE, lst_date from mc.tsklnk
where NEXTTRIG_DATE between '28-FEB-05' and '01-MAR-05'
and lst_date = '29-FEB-04'
order by NEXTTRIG_DATE
/

NEXTTRIG_ LST_DATE
--------- ---------
29-FEB-05 29-FEB-04
29-FEB-05 29-FEB-04
29-FEB-05 29-FEB-04

Selecting to_date(NEXTTRIG,yyyy) produces 0000, which I guess means the
to-date is crashing internally

While I can and have fixed the problem, I'd love to know how one would
be able to do this anyway - seeing as I can't duplicate the problem.
The information was stored by a third party ERP application via Oracle
ODBC, so I can't tell what it did - any suggestions ? So far the
application itself and MS Query have collapsed trying to read the date
(I'm guessing they do their own validation), so it's quite interesting
....

Any ideas ?

Andrew

Jul 19 '05 #1
0 3799

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Shino | last post by:
Hi, Can anyone help with this error: "ORA-00904: invalid column name"? Thanks! SQL> create view PPFa as 2 SELECT L.UserID AS LecID, U.Name, U.Email, I.IntakeID, S.UserID AS StudID 3 FROM...
4
by: Corrine | last post by:
Hi, I am creating a global temporary table that is session-specific. I insert a BLOB into this table, and then select the BLOB from this table into a ResultSet. The ResultSet sees this BLOB...
1
by: jt | last post by:
I posted this yesterday, but I am not seeing this out yet: I am having problems with updating a date field in a certain format. The data is stored in an Oracle database. The date is...
4
by: Malcolm Diaz | last post by:
Hello all Thank you all in advance. I am completely at a loss here with this error. I am developing a simple interface that will allow a user to enter,execute and view results from a SQL statement...
18
by: Robin Lawrie | last post by:
Hi again, another problem! I've moved from an Access database to SQL server and am now having trouble inserting dates and times into seperate fields. I'm using ASP and the code below to get the...
7
by: RobertoP | last post by:
Hello all, I am trying to create an simple application that communicates with an Oracle DB, but the data returned by the OracleDataReader object contains random invalid characters. To be more...
2
by: adams114 | last post by:
I am having a strange problem with invalid type casts. I am trying to update a MS SQL Database with a stored procedure. When I setup the parameters collection for the command object I get a invalid...
0
by: wqhflp | last post by:
Hi, I want to insert data into a table SQLdesc jijin Name Null? Type ----------------------------------------- -------- ------------- ID ...
7
by: vnl | last post by:
I'm trying to run a SQL query but can't find any records when trying to select a certain date. Here's the sql: SELECT field 1, field2, date_and_time, FROM table1 WHERE date_and_time =...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.