August 5, 2004 at 5:07 am
how do i calculate no. of days between 2 dates in oracle.
select expiry_Dt-sysdate as noofdays from oracle ?? how exactly
<a href="http://www.websolsoftware.com"> For IT jobs click here</a>
*Sukhoi*[font="Arial Narrow"][/font]
August 5, 2004 at 8:01 am
a minus sign is correct. However you need to 'select sysdate from dual' to get back todays date.
August 5, 2004 at 10:30 pm
how exactly pls show it??
<a href="http://www.websolsoftware.com"> For IT jobs click here</a>
*Sukhoi*[font="Arial Narrow"][/font]
August 6, 2004 at 4:14 am
select (expiry_Dt)-(sysdate from dual) as noofdays
August 8, 2004 at 10:27 pm
it does'nt work have you checked that query ??
<a href="http://www.websolsoftware.com"> For IT jobs click here</a>
*Sukhoi*[font="Arial Narrow"][/font]
August 9, 2004 at 12:06 am
Try this
select (Todate-FromDate) "NoOfdays" from dual.
Viewing 6 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply