Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: How many days until Christmas?
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
Hi,
=A0=A0=A0 It looks simple.....
=A0
=A0=A0 SQL> select to_date('25-Dec-00','dd-mon-yy') - sysdate from dual =
;
=A0
TO_DATE('25-DEC-00','DD-MON-YY')-SYSDATE
HTH,
Rajesh
-----Original Message-----
From: root_at_fatcity.com [mailto:root_at_fatcity.com]On Behalf Of Mark Leith
Sent: Wednesday, October 11, 2000 4:00 PM
To: Multiple recipients of list ORACLE-L
Subject: How many days until Christmas?
Hi Guy's
=A0
I've been asked a question, but haven't the time to check it, so I'm
sorry if its simple. Is there a way of finding the difference in days
between sysdate (today) and a point in time in the future (Christmas)
through Oracle?
=A0
Don't ask me why, mine is just to do and die..=20
=A0
Thanks
=A0
Mark
=A0
Mark Leith
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Cool Tools UK Ltd
+44 1905 330 281
mark_at_cool-tools.co.uk
=A0
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =charset=3Dus-ascii">
<META content=3D"MSHTML 5.00.2314.1000" name=3DGENERATOR></HEAD> <BODY> <DIV><FONT color=3D#0000ff face=3D"Lucida Console" size=3D2><SPAN=20class=3D039060612-11102000>Hi,</SPAN></FONT></DIV> <DIV><FONT color=3D#0000ff face=3D"Lucida Console" size=3D2><SPAN=20 class=3D039060612-11102000> It looks=20 simple.....</SPAN></FONT></DIV>
size=3D2>TO_DATE('25-DEC-00','DD-MON-YY')-SYSDATE<BR>-------------------= ---------------------<BR>  =;  = ; =20 74.331516<BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D344432115-10102000>Hi=20 Guy's</SPAN></FONT></DIV> <DIV><FONT face=3DArial size=3D2><SPAN=20class=3D344432115-10102000></SPAN></FONT> </DIV> <DIV><FONT face=3DArial size=3D2><SPAN = class=3D344432115-10102000>I've been asked a=20 question, but haven't the time to check it, so I'm sorry if its = simple. Is=20
<DIV><FONT face=3DArial size=3D2><SPAN=20 class=3D344432115-10102000>Thanks</SPAN></FONT></DIV> <DIV><FONT face=3DArial size=3D2><SPAN=20class=3D344432115-10102000></SPAN></FONT> </DIV> <DIV><FONT face=3DArial size=3D2><SPAN=20 class=3D344432115-10102000>Mark</SPAN></FONT></DIV> <DIV><FONT face=3DArial size=3D2><SPAN=20 class=3D344432115-10102000></SPAN></FONT> </DIV>
<DIV><FONT color=3D#0080ff size=3D2><EM>Mark Leith</EM></FONT></DIV> <DIV><FONT color=3D#ff0000 face=3DArial = size=3D2>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D</FONT></DIV=>