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
Microsoft Hyper-V Server 2008 R2 - Is there a benefit to a small organisation?
Public IP
DNS and Exchange problems
Outlook 2007 keeps bombing every five minutes or so. Send error report?
word/excel don't show any printers on terminal server, but outlook/notepad/IE/etc work perfectly
Posting form data and jquery
aspnet, gridview.. Trimming the data in the bound controls
SEO Yahoo Directory, $299 a year, is it worth it? Will it increase a PR0 PR1 or PR2 a level?
Show Hide tables using drop downs in asp
Word dialog box hides behing my Access app window.