| | |
I need the logic behind date syntax
Please support our Oracle advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
Can someone let me know how the date syntax work. example working with "greatest" 01-oct-02 and 20-may-2003, it accept 20-may-2003 to be the greatest instead of 01-oct-02 which the oldest (greatest) can someone explain this to me. please let me know the logic behind. I have alot of problems with this.
•
•
•
•
You Have to use Date Fromat To_Date
('20-may-2003','dd-mon-yyyy') and to_date('01-oct-2002','dd-mon-yyyy')
and you find between this greatest.
when oracle tries to compare the two date to see the one that is oldest, because one have to come before the other everyone it is known that '01-oct-2002' will come first before '20-may-2003' just a mere look. But oracle does not work like that, it works differently try comparing the dates using the greatest function. you see what i am talking about. i want to know the logic.
Last edited by sunny101; Sep 26th, 2008 at 1:09 am.
![]() |
Similar Threads
- 55: ')' expected (Error cant compile) PLZ HELP! (Java)
- Programming FAQ - Updated 1/March/2005 (Computer Science)
- memory management in wndows 2000 (Windows NT / 2000 / XP)
- Need help with some syntax errors (C++)
- homeworkhelp (C)
- I need advices for the Pseudocode (JavaScript / DHTML / AJAX)
- When a host says "included scripts" (Networking Hardware Configuration)
- Zend PHP Certification (PHP)
Other Threads in the Oracle Forum
- Previous Thread: problem list item
- Next Thread: Oracle console stucks
| Thread Tools | Search this Thread |
2009predictions acquisition amazon.com bartz bernanke cia citrix cloudcomputing crm database dell economy editor enterprise enterprise2.0 enterprisesoftware federalreserve forbes hp ibm intellipedia internet larryellison layoffs linux loughridge mediawiki michaeljackson microsoft neverland nortel notebooks oil operatingsystem oracle palm rimm saas salesforce sap seagate socialcomputing sql sun sybase technologystocks virtualiron virtualization vmware wiki wikipedia xen yahoo zoho





