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
Install Framework 3.0 message on Nero Multimedia Suite 10 even though already installed
Create 3D network diagrams
Cannot connect to the virtual machine in Server 2008 after Hyper v set up
How do I create a 'change' event for a VB6 listbox control?
Installing other OS (ESXi) on HP StorageWorks X1000
How to merge two List?
Using Calendar Control 11.0 in Access 2003 on a Tab Control on a Form
SQL Dates
Mobile Web Browsing
Validate multiple radiobuttonlist validation with error message each group