tags:

views:

23

answers:

2

How to compare dates which are in different tables and find the difference between two dates?

A: 

take a look at this: http://psoug.org/reference/date_func.html

TonyP
A: 

Some date operations are pretty straightforward in Oracle. To get the difference between two DATE values, subtract one from the other. The result is returned as a number of days, including fractional days. (e.g. .25 = 6 hours)

SELECT dateval1 - dateval2 AS days_diff FROM ...

spencer7593