Q
Problem solve Get help with specific problems with your technologies, process and projects.

Months between two dates in Oracle

I have two fields: start_date and disconnect_date. I want to calculate the number of months the customer stayed using the difference between the two fields. How do I do this in PL/SQL if both fields are formatted as dates?

Try using the MONTHS_BETWEEN function.

For More Information


Dig Deeper on Oracle and SQL

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchDataManagement

SearchBusinessAnalytics

SearchSAP

SearchSQLServer

TheServerSide.com

SearchDataCenter

SearchContentManagement

SearchHRSoftware

Close