@orpha
You can extract the number of days between two dates in Oracle SQL using the DATEDIFF function. Here's an example query to achieve this:
1 2 |
SELECT DATEDIFF(day, '2022-01-01', '2022-01-10') AS days_between_dates FROM dual; |
In this query:
When you run this query, you will get the output as the number of days between the two dates, which in this case would be 9.