Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

days_between>>

Status
Not open for further replies.

i257156

Programmer
Sep 25, 2002
12
0
0
GB
Got a sticky problem which is causing me a few problems in Query Builder Oracle...... HELP PLEASE!!!!!
I have a date and I want to know how many days have passed.
I have used the help facility and so far have come up with:
MONTHS_BETWEEN(SEV_ACTUAL_DATE, SYSDATE)
This returns the months between.
Is there such a command as days_between or similar?
Thanks
JB
 
Are you joking? Explicit subtraction returns this number!

Regards, Dima
 
No I am not joking... Just becuase it says programmer by my name doesn't mean I know about Oracle.

I have very limited Oracle experience....

Where can I find out about the command "? Explicit subtraction"?

Thanks
 
date2-date1 => returns number of days between date1 and date2.

Regards, Dima
 
Didn't realise how easy Oracle was... Am learning more and more each day..

Thanks for the prompt reply.
JB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top