Microsoft
Software
Hardware
Network
Question : sql - date format
I used to have oracle 9 i. I think it is now oracle 10 g and I have a sql that used to run fine, but is now throwing this error:
where alian_join_dt >= trunc(sysdate)-10101010101
010101010
*
ERROR at line 3:
ORA-01841: (full) year must be between -4713 and +9999, and not be 0
----my sql is :
select acct_nbr, type
from mytable where join_dt >= trunc(sysdate)-1;
Answer : sql - date format
There is nothing wrong with:
select acct_nbr, type
from mytable where join_dt >= trunc(sysdate)-1;
What is generating:
trunc(sysdate)-
1010101010
1010101010
This will fail since it trying to subtract 10101010101010101010 days from sysdate.
Random Solutions
MiniDump reading request - BSOD on windows Vista Laptop
How do I convert a text entry to a numeric value in Excel?
Open ports on Cisco Small Business pro VLAN
output report with date and time stamp
How do I allow data entry under certain conditions in an access form
ORA-07445
Outlook 2010
Configure Shrew VPN client
How to sort grid view grouping in delphi by different value and not by caption of the text?
Problem using Windows 7 and Access 2007