days calculation problem in oracle

  • 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]

  • a minus sign is correct. However you need to 'select sysdate from dual' to get back todays date.


    ------------------------------
    The Users are always right - when I'm not wrong!

  • how exactly pls show it??

    <a href="http://www.websolsoftware.com"> For IT jobs click here</a>

    *Sukhoi*[font="Arial Narrow"][/font]

  • select (expiry_Dt)-(sysdate from dual) as noofdays


    ------------------------------
    The Users are always right - when I'm not wrong!

  • 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]

  • 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